/* Comunidad 0.4.43 — Hinchada: directorio compacto, contraste claro/oscuro y adaptable. */
.tc-hinchada{max-width:1160px;margin:22px auto 50px;padding:0 16px;font-family:'Nunito Variable',Nunito,system-ui,sans-serif;color:var(--ms-ink,#142239)}
.tc-hinchada *{box-sizing:border-box}
.tc-hinchada-hero{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 25px;border-radius:18px;background:linear-gradient(110deg,#15392e,#166a42 72%,#133e42);color:#fff}
.tc-hinchada-hero>div:first-child{flex:1;min-width:220px}.tc-hinchada-kicker{font-size:10px;font-weight:900;letter-spacing:.12em;color:#f0dc94}
.tc-hinchada-hero h1{color:#fff;margin:4px 0;font-size:clamp(25px,3vw,33px);line-height:1.1}.tc-hinchada-hero p{max-width:610px;margin:5px 0;color:#e6f5e9;font-size:13px;line-height:1.5}
.tc-hinchada-hero-actions{display:flex;gap:8px;flex-wrap:wrap}.tc-hinchada-hero-actions a{padding:9px 12px;border:1px solid #e2f8e64d;border-radius:9px;color:#fff;text-decoration:none;font-size:12px;font-weight:800;background:#ffffff16}
.tc-hinchada-privacy{font-size:11px;margin:12px 3px 6px;color:var(--ms-muted,#5e7083)}.tc-hinchada-privacy a{color:#178b50;font-weight:850}
.tc-hinchada-search{margin:12px 0 16px;border:1px solid var(--ms-border,#dbe4e9);background:var(--ms-card-bg,#fff);border-radius:13px;padding:12px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.tc-hinchada-search label{display:grid;gap:5px;font-size:11px;font-weight:850;min-width:145px;flex:1}.tc-hinchada-search label:first-child{flex:2;min-width:220px}
.tc-hinchada-search input,.tc-hinchada-search select{height:40px;width:100%;min-width:0;border:1px solid #aab9c8;border-radius:8px;padding:0 10px;font:700 12px Nunito,system-ui,sans-serif;color:var(--ms-ink,#142239);background:var(--ms-card-bg,#fff)}
.tc-hinchada-search button{height:40px;padding:0 17px;border:0;border-radius:9px;background:#187b47;color:#fff;font:900 12px Nunito,system-ui,sans-serif;cursor:pointer}
.tc-hinchada-reset{font-size:12px;font-weight:800;padding:12px 5px;color:#16814a}.tc-hinchada-summary{display:flex;align-items:baseline;gap:10px;margin:12px 2px;font-size:13px}
.tc-hinchada-summary strong{font-weight:1000}.tc-hinchada-summary span{font-size:11px;color:var(--ms-muted,#64748b)}
.tc-hinchada-list{display:flex;flex-direction:column;gap:7px}
.tc-hinchada-card{min-width:0;display:grid;grid-template-columns:minmax(140px,1.05fr) minmax(140px,1fr) minmax(115px,.95fr) minmax(210px,auto);align-items:center;gap:12px;background:var(--ms-card-bg,#fff);border:1px solid var(--ms-border,#d7e1e8);border-radius:13px;padding:9px 12px;box-shadow:0 3px 12px #09202f08}
.tc-hinchada-user{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:inherit}
.tc-hinchada-avatar{display:block;width:49px;height:49px;flex:0 0 49px;border-radius:50%;padding:3px;border:2px solid #cbd5df;background:var(--ms-card-bg,#fff);box-shadow:0 2px 7px #172c2840;overflow:visible}
.tc-hinchada-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;background:#f1f5f9}
.tc-hinchada-user-name{display:flex;flex-direction:column;gap:3px;min-width:0}.tc-hinchada-user-name strong{font-size:14px;font-weight:1000;line-height:1.15;overflow-wrap:anywhere;color:var(--ms-ink,#142239)}
.tc-hinchada-user-name small{font-size:10px;color:var(--ms-muted,#65778a);line-height:1.25}
.tc-hinchada-team,.tc-hinchada-follow{display:flex;flex-direction:column;gap:5px;min-width:0}
.tc-hinchada-team-label{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:var(--ms-muted,#738195)}
.tc-hinchada-club{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:1.25}.tc-hinchada-club strong{font-weight:900;overflow-wrap:anywhere}
.tc-hinchada-crest img,.tc-hinchada-crest svg{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;object-fit:contain}
.tc-hinchada-crest{flex:0 0 34px;display:grid;place-items:center}.tc-hinchada-extras{display:flex;flex-wrap:wrap;gap:4px}
.tc-hinchada-extra{display:inline-flex;align-items:center;gap:4px;min-width:0;padding:4px 7px;border-radius:8px;background:var(--ms-soft,#f0f3f6);color:var(--ms-ink,#394657);font-size:10px;font-weight:750;line-height:1.15;overflow-wrap:anywhere}
.tc-hinchada-extra-crest{display:inline-grid;place-items:center;flex:0 0 15px}.tc-hinchada-extra-crest img,.tc-hinchada-extra-crest svg{width:15px!important;height:15px!important;max-width:15px!important;max-height:15px!important;object-fit:contain}
.tc-hinchada-no-extras{font-size:11px;color:var(--ms-muted,#9aa8b5)}
.tc-hinchada-card-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.tc-hinchada-card-actions>a,.tc-hinchada-card-actions>span,.tc-hinchada-card-actions button{display:inline-block;padding:9px 10px;border-radius:8px;font:900 11px/1.2 Nunito,system-ui,sans-serif;text-align:center;text-decoration:none;white-space:normal}
.tc-hinchada-card-actions form{margin:0}.tc-hinchada-view{border:1px solid #a9bacb;color:#25435c!important;background:var(--ms-card-bg,#fff)}
.tc-hinchada-aguante{background:#166f3b;color:#fff;border:1px solid #14603a;cursor:pointer}
.tc-hinchada-action-state{color:#5a6978;background:#edf0f4}.tc-hinchada-action-state.is-friends{background:#ddf7e4;color:#176238}.tc-hinchada-action-state.is-pending{background:#fff2c8;color:#725316}
.tc-hinchada-empty{padding:30px 18px;text-align:center;background:var(--ms-card-bg,#fff);border:1px solid var(--ms-border,#d7e1e8);border-radius:15px}.tc-hinchada-empty h2{font-size:18px;margin:0 0 5px}.tc-hinchada-empty p{font-size:12px}.tc-hinchada-empty a{color:#13854a}
.tc-hinchada-pagination{display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;padding:22px 0}.tc-hinchada-pagination a{padding:10px 14px;background:#e4f3e8;color:#14623b;border-radius:9px;font-weight:900;text-decoration:none}
@media(max-width:900px){.tc-hinchada-card{grid-template-columns:minmax(145px,1.1fr) minmax(145px,1fr) minmax(150px,1fr);gap:8px}.tc-hinchada-follow{grid-column:2}.tc-hinchada-card-actions{grid-column:3;grid-row:1/span 2}}
@media(max-width:650px){.tc-hinchada{padding:0 10px;margin-top:12px}.tc-hinchada-hero{padding:17px 14px}.tc-hinchada-search label{flex:1 1 100%}.tc-hinchada-search label:first-child{min-width:0}.tc-hinchada-search button{flex:1}.tc-hinchada-card{grid-template-columns:1fr auto;grid-template-rows:auto auto auto;align-items:start;padding:12px;gap:9px}.tc-hinchada-user{grid-column:1;grid-row:1}.tc-hinchada-team{grid-column:1 / -1;grid-row:2}.tc-hinchada-follow{grid-column:1 / -1;grid-row:3}.tc-hinchada-card-actions{grid-column:2;grid-row:1;flex-direction:column;align-items:stretch;gap:5px}.tc-hinchada-card-actions>a,.tc-hinchada-card-actions>span,.tc-hinchada-card-actions button{padding:7px 8px;font-size:10px}.tc-hinchada-card-actions form{display:block}.tc-hinchada-avatar{width:46px;height:46px;flex-basis:46px}.tc-hinchada-team-label{font-size:9px}.tc-hinchada-user-name strong{font-size:13px}}


/* Comunidad 0.4.42 — El header verde reemplaza al enorme título de la página.
   No altera otras páginas: se activa solamente cuando existe el directorio. */
html body.tessirve-theme .ms-site-main > .ms-content:has(.tc-hinchada){max-width:1200px!important;padding:10px 12px 30px!important;margin:0 auto!important}
html body.tessirve-theme .ms-content:has(.tc-hinchada) > .ms-content-header{display:none!important}
html body.tessirve-theme .ms-content:has(.tc-hinchada) > .ms-entry-content{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;line-height:1.5!important}
html body.tessirve-theme .ms-entry-content:has(.tc-hinchada) > p:empty{display:none!important}
html body.tessirve-theme .tc-hinchada{margin:0 auto 32px!important;padding:0 4px!important;max-width:1160px!important;font-family:'Nunito Variable',Nunito,system-ui,sans-serif!important}
html body.tessirve-theme .tc-hinchada :is(h1,h2,h3,p,span,strong,small,label,a,button,input,select,option){font-family:'Nunito Variable',Nunito,system-ui,sans-serif!important}
.tc-hinchada-hero{padding:15px 19px!important;gap:10px!important;border-radius:14px!important}
.tc-hinchada-hero h1{font-size:clamp(23px,2.5vw,28px)!important;letter-spacing:0!important}
.tc-hinchada-hero p{font-size:13px!important;line-height:1.35!important}
.tc-hinchada-hero-actions a{font-size:11px!important}
.tc-hinchada-user-name strong.tc-tessi-username{display:inline-block!important;max-width:100%;font-size:14px!important;line-height:1.2!important;overflow-wrap:anywhere}
/* Texto normal para quien no tenga glow equipado. El glow se hereda del catálogo oficial. */
.tc-hinchada-user-name strong.tc-tessi-username:not([class*="tc-tessi-glow-"]){color:var(--ms-ink,#142239)!important;text-shadow:none!important}
@media(max-width:650px){
  html body.tessirve-theme .ms-site-main > .ms-content:has(.tc-hinchada){padding:7px 7px 24px!important}
  html body.tessirve-theme .tc-hinchada{padding:0 2px!important}
  .tc-hinchada-hero{padding:14px 13px!important}
  .tc-hinchada-hero-actions{gap:5px!important}
}


/* Comunidad 0.4.43 — contraste real para claro/oscuro solo en Hinchada. */
html body.tessirve-theme .tc-hinchada{
  --tc-h-bg:#f7fafc;
  --tc-h-card:#ffffff;
  --tc-h-soft:#f2f5f8;
  --tc-h-line:#d7e1e8;
  --tc-h-line-strong:#a9bacb;
  --tc-h-text:#142239;
  --tc-h-muted:#607387;
  --tc-h-accent:#187b47;
  --tc-h-accent-dark:#14603a;
  --tc-h-action:#25435c;
  color:var(--tc-h-text)!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-hinchada{
  --tc-h-bg:#07111d;
  --tc-h-card:#111c29;
  --tc-h-soft:#1b2a3b;
  --tc-h-line:#253649;
  --tc-h-line-strong:#3a4f67;
  --tc-h-text:#edf4fb;
  --tc-h-muted:#aab8c7;
  --tc-h-accent:#1d8b4f;
  --tc-h-accent-dark:#176f40;
  --tc-h-action:#dce9f7;
}
html body.tessirve-theme .ms-entry-content:has(.tc-hinchada){background:transparent!important}
html body.tessirve-theme .tc-hinchada-search,
html body.tessirve-theme .tc-hinchada-card,
html body.tessirve-theme .tc-hinchada-empty{background:var(--tc-h-card)!important;border-color:var(--tc-h-line)!important;color:var(--tc-h-text)!important}
html body.tessirve-theme .tc-hinchada-search input,
html body.tessirve-theme .tc-hinchada-search select{background:var(--tc-h-card)!important;border-color:var(--tc-h-line-strong)!important;color:var(--tc-h-text)!important}
html body.tessirve-theme .tc-hinchada-search input::placeholder{color:color-mix(in srgb,var(--tc-h-muted) 76%,transparent)!important}
html body.tessirve-theme .tc-hinchada-summary span,
html body.tessirve-theme .tc-hinchada-privacy,
html body.tessirve-theme .tc-hinchada-user-name small,
html body.tessirve-theme .tc-hinchada-team-label,
html body.tessirve-theme .tc-hinchada-no-extras{color:var(--tc-h-muted)!important}
html body.tessirve-theme .tc-hinchada-user-name strong,
html body.tessirve-theme .tc-hinchada-club strong,
html body.tessirve-theme .tc-hinchada-empty h2,
html body.tessirve-theme .tc-hinchada-summary strong{color:var(--tc-h-text)!important}
html body.tessirve-theme .tc-hinchada-extra{background:var(--tc-h-soft)!important;color:var(--tc-h-text)!important}
html body.tessirve-theme .tc-hinchada-view{background:var(--tc-h-card)!important;border-color:var(--tc-h-line-strong)!important;color:var(--tc-h-action)!important}
html body.tessirve-theme .tc-hinchada-aguante,
html body.tessirve-theme .tc-hinchada-search button{background:var(--tc-h-accent)!important;border-color:var(--tc-h-accent-dark)!important;color:#fff!important}
html body.tessirve-theme .tc-hinchada-action-state{background:var(--tc-h-soft)!important;color:var(--tc-h-muted)!important}
html body.tessirve-theme .tc-hinchada-pagination a{background:color-mix(in srgb,var(--tc-h-accent) 16%,var(--tc-h-card))!important;color:var(--tc-h-accent)!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-hinchada-card{box-shadow:0 8px 22px rgba(2,10,22,.26)!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-hinchada-avatar{background:#0f1724!important;border-color:#3a4f67!important;box-shadow:0 2px 8px rgba(0,0,0,.35)!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-hinchada-hero{box-shadow:0 14px 36px rgba(2,10,22,.26)!important}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .tc-hinchada-user-name strong.tc-tessi-username:not([class*="tc-tessi-glow-"]){color:var(--tc-h-text)!important;text-shadow:none!important}

/* 0.4.45 — El orden ocupa su espacio sin romper los filtros en PC o celular. */
html body.tessirve-theme .tc-hinchada-search .tc-hinchada-sort{flex:1.1 1 170px;min-width:160px}
html body.tessirve-theme .tc-hinchada-search .tc-hinchada-sort select{font-family:'Nunito Variable',Nunito,system-ui,sans-serif!important;font-size:11px!important}
@media(max-width:650px){
  html body.tessirve-theme .tc-hinchada-search .tc-hinchada-sort{flex:1 1 100%;min-width:0}
}


/* 0.4.47 — Indicador online discreto junto al apodo, igual a posiciones de Tessiliga.
   No toca el avatar ni el marco comprado. */
html body.tessirve-theme .tc-hinchada-name-line{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;min-width:0!important;max-width:100%!important;
}
html body.tessirve-theme .tc-hinchada-name-line>strong.tc-tessi-username{
  min-width:0!important;flex:0 1 auto!important;max-width:calc(100% - 10px)!important;
}
html body.tessirve-theme .tc-hinchada-name-line>.tc-hinchada-online-dot{
  display:inline-block!important;position:relative!important;inset:auto!important;
  width:4px!important;height:4px!important;min-width:4px!important;
  flex:0 0 4px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:50%!important;
  background:#16c864!important;box-shadow:0 0 0 1px #12884c,0 0 3px #24d376aa!important;
  vertical-align:middle!important;pointer-events:none!important;
}
html body.tessirve-theme .tc-hinchada-name-line>.tc-hinchada-online-dot[hidden]{display:none!important}
html body.tessirve-theme .tc-hinchada-name-line>.tc-hinchada-online-dot::after{inset:-2.5px!important;border-width:1px!important}
@media(prefers-reduced-motion:reduce){.tc-hinchada-online-dot,.tc-hinchada-online-dot::after{animation:none!important}}


/* 0.4.50 — Lista de Hinchada: apodos en una sola línea y espacio bien distribuido.
   Solo presentación: sin cambios en búsqueda, privacidad, presencia o El Aguante. */
html body.tessirve-theme .tc-hinchada-card {
  column-gap:12px!important;
  row-gap:7px!important;
  padding:9px 13px!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user {
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user-name {
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  gap:3px!important;
  flex-direction:column!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line {
  display:flex!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:5px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  white-space:nowrap!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line>strong.tc-tessi-username {
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:calc(100% - 10px)!important;
  min-width:0!important;
  margin:0!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.24!important;
  font-size:13px!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line>.tc-hinchada-online-dot {
  flex:0 0 4px!important;
  flex-shrink:0!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user-name>small {
  font-size:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team,
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-follow {
  min-width:0!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions {
  align-items:center!important;
  min-width:0!important;
}
/* Escritorio amplio: priorizar la identidad y mantener los botones al final. */
@media(min-width:1040px) {
  html body.tessirve-theme .tc-hinchada-card {
    grid-template-columns:minmax(260px,1.45fr) minmax(165px,.95fr) minmax(140px,.85fr) minmax(188px,auto)!important;
    align-items:center!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user,
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team,
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-follow,
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions {
    grid-row:auto!important;
    grid-column:auto!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions {
    justify-content:flex-end!important;
    flex-direction:row!important;
  }
}
/* Tablet y PC angosta: apodo ocupa dos filas sin chocar con clubes ni acciones. */
@media(min-width:651px) and (max-width:1039px) {
  html body.tessirve-theme .tc-hinchada-card {
    grid-template-columns:minmax(230px,1.2fr) minmax(145px,1fr) minmax(165px,auto)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user{grid-column:1!important;grid-row:1/3!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team{grid-column:2!important;grid-row:1!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-follow{grid-column:2!important;grid-row:2!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions{
    grid-column:3!important;grid-row:1/3!important;
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:stretch!important;gap:5px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions form{width:100%!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions :is(a,button,.tc-hinchada-action-state){width:100%!important}
}
/* Móvil: el usuario tiene TODA la primera fila; las acciones dejan de quitarle ancho.
   Principal y secundarios comparten la segunda fila; botones en una fila aparte. */
@media(max-width:650px) {
  html body.tessirve-theme .tc-hinchada-card {
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
    grid-template-rows:auto auto auto!important;
    padding:10px!important;
    gap:8px 10px!important;
    align-items:start!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user {
    grid-column:1/-1!important;grid-row:1!important;
    align-items:center!important;gap:9px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user-name {
    flex:1 1 auto!important;width:auto!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line>strong.tc-tessi-username {
    font-size:13px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team{
    grid-column:1!important;grid-row:2!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-follow{
    grid-column:2!important;grid-row:2!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions {
    grid-column:1/-1!important;grid-row:3!important;
    display:flex!important;flex-direction:row!important;
    align-items:stretch!important;justify-content:flex-end!important;
    gap:7px!important;flex-wrap:wrap!important;
    border-top:1px solid var(--tc-h-line,#d7e1e8)!important;
    padding-top:7px!important;
    width:100%!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions>.tc-hinchada-view {
    flex:0 0 auto!important;
    min-width:100px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions>form {
    flex:1 1 145px!important;margin:0!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions>form>button,
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions>.tc-hinchada-action-state {
    width:100%!important;
    flex:1 1 145px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions :is(a,button,span){
    display:inline-flex!important;
    align-items:center!important;justify-content:center!important;
    min-height:30px!important;
    padding:6px 10px!important;
    line-height:1.2!important;
    font-size:10px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-club{
    align-items:center!important;gap:5px!important;
    font-size:11px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-crest{
    flex-basis:26px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-crest :is(img,svg){
    width:26px!important;height:26px!important;
    max-width:26px!important;max-height:26px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-extra{
    padding:3px 5px!important;font-size:10px!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team-label{
    font-size:9px!important;
  }
}
/* Pantallas muy angostas: no sacrificar ancho del usuario para otros clubes. */
@media(max-width:350px) {
  html body.tessirve-theme .tc-hinchada-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
  }
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-team{grid-column:1!important;grid-row:2!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-follow{grid-column:1!important;grid-row:3!important}
  html body.tessirve-theme .tc-hinchada-card .tc-hinchada-card-actions{grid-column:1!important;grid-row:4!important}
}


/* 0.4.51 — Hinchada móvil compacta sin filas estiradas. El grupo de clubes
   es un contenedor real y el layout móvil es FLEX (sin grid-row implícitos).
   En PC/tablet display:contents conserva exactamente la grilla anterior. */
html body.tessirve-theme .tc-hinchada-card > .tc-hinchada-clubs {
  display:contents!important;
}
@media(max-width:650px) {
  html body.tessirve-theme .tc-hinchada .tc-hinchada-list > .tc-hinchada-card {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:9px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:12px!important;
    overflow:visible!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card > .tc-hinchada-user {
    display:flex!important;
    order:1!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-height:0!important;
    align-self:auto!important;
    margin:0!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card > .tc-hinchada-clubs {
    display:grid!important;
    order:2!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-auto-rows:min-content!important;
    align-items:start!important;
    gap:8px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-clubs > :is(.tc-hinchada-team,.tc-hinchada-follow) {
    display:flex!important;
    flex-direction:column!important;
    grid-row:auto!important;
    grid-column:auto!important;
    justify-content:flex-start!important;
    align-items:flex-start!important;
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
    width:100%!important;
    min-width:0!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card > .tc-hinchada-card-actions {
    display:grid!important;
    order:3!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.22fr)!important;
    grid-auto-rows:min-content!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:8px 0 0!important;
    gap:7px!important;
    border-top:1px solid var(--tc-h-line,#d7e1e8)!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card-actions > :is(a,span,form) {
    display:flex!important;
    flex:initial!important;
    grid-row:auto!important;
    grid-column:auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:32px!important;
    max-height:none!important;
    margin:0!important;
    padding:6px 7px!important;
    border-radius:8px!important;
    font-size:10px!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    align-self:stretch!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card-actions > form {
    padding:0!important;
    border:0!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card-actions > form > button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:32px!important;
    max-height:none!important;
    padding:6px 7px!important;
    font-size:10px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
}
@media(max-width:350px) {
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card > .tc-hinchada-clubs{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  html body.tessirve-theme .tc-hinchada .tc-hinchada-card > .tc-hinchada-card-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important;
  }
}


/* 0.4.75 — Hinchada: línea de identidad igualada a Tessiliga.
   Agrega escudo principal pequeño junto al apodo y suaviza el bloque. */
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line{
  gap:6px!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-crest{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  line-height:1!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-crest img,
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-crest svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  object-fit:contain!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line>strong.tc-tessi-username{
  font-size:13px!important;
  line-height:1.2!important;
}


/* 0.4.76 — El glow en Hinchada no debe recortarse como bloque cuadrado.
   La causa era overflow:hidden sobre el nombre; se deja visible para que el halo respire como en Tessiliga. */
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line{
  overflow:visible!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-name-line>strong.tc-tessi-username{
  overflow:visible!important;
  text-overflow:clip!important;
  max-width:none!important;
  position:relative!important;
  z-index:1!important;
}
html body.tessirve-theme .tc-hinchada-card .tc-hinchada-user-name{
  overflow:visible!important;
}
