/* AD Mérida - Clasificación */
.adm-standings{
  --adm-green:#009447;
  --adm-ink:#141414;
  --adm-muted:#777;
  --adm-line:#e9e9e9;
  --adm-bg:#fff;
  --adm-promote:#169c56;
  --adm-playoff:#d5a528;
  --adm-relegation:#c84444;
  width:100%;
  background:var(--adm-bg);
  color:var(--adm-ink);
  font-family:inherit;
}

.adm-standings-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  padding:0 0 18px;
}
.adm-standings-head h2{
  margin:0;
  font-size:clamp(28px,4vw,48px);
  line-height:1;
  letter-spacing:-.03em;
  text-transform:uppercase;
  font-weight:800;
}
.adm-standings-head p{
  margin:8px 0 0;
  color:var(--adm-muted);
  font-size:14px;
  font-weight:600;
}
.adm-jornada{
  border:1px solid var(--adm-line);
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:800;
  line-height:1;
}
.adm-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-top:2px solid var(--adm-ink);
}
.adm-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  border-spacing:0;
  table-layout:fixed;
}
.adm-table th,
.adm-table td{
  padding:12px 10px;
  border-bottom:1px solid var(--adm-line);
  text-align:center;
  vertical-align:middle;
  font-variant-numeric:tabular-nums;
}
.adm-table th{
  background:#fafafa;
  color:#777;
  font-size:11px;
  letter-spacing:.07em;
  font-weight:800;
}
.adm-table td{
  font-size:14px;
  font-weight:650;
}
.adm-table .adm-pos{
  width:58px;
}
.adm-table .adm-team{
  width:34%;
  min-width:245px;
  text-align:left;
}
.adm-table td.adm-team{
  display:flex;
  align-items:center;
  gap:12px;
}
.adm-crest{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
}
.adm-crest img{
  display:block;
  max-width:32px;
  max-height:32px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.adm-crest-fallback{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#f0f0f0;
  display:grid;
  place-items:center;
  font-size:9px;
  font-weight:900;
  color:#555;
}
.adm-team-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:750;
}
.adm-points{
  font-weight:900 !important;
}
.adm-table tbody tr{
  position:relative;
  transition:background .15s ease;
}
.adm-table tbody tr:hover{
  background:#fafafa;
}
.adm-table tbody tr td:first-child{
  border-left:4px solid transparent;
}
.adm-table tbody tr.zone-promote td:first-child{ border-left-color:var(--adm-promote); }
.adm-table tbody tr.zone-playoff td:first-child{ border-left-color:var(--adm-playoff); }
.adm-table tbody tr.zone-relegation td:first-child{ border-left-color:var(--adm-relegation); }

.adm-table tbody tr.is-admerida{
  background:var(--adm-green);
  color:#fff;
}
.adm-table tbody tr.is-admerida:hover{
  background:var(--adm-green);
}
.adm-table tbody tr.is-admerida td{
  border-bottom-color:rgba(255,255,255,.18);
}
.adm-table tbody tr.is-admerida .adm-crest-fallback{
  background:#fff;
  color:var(--adm-green);
}

.adm-legend{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:14px;
  font-size:11px;
  color:var(--adm-muted);
}
.adm-legend span{ display:inline-flex;align-items:center;gap:6px; }
.adm-legend i{ width:10px;height:10px;border-radius:2px;display:inline-block; }
.adm-legend .promote{background:var(--adm-promote);}
.adm-legend .playoff{background:var(--adm-playoff);}
.adm-legend .relegation{background:var(--adm-relegation);}

.adm-source{
  margin-top:12px;
  color:#999;
  font-size:10px;
  text-align:right;
}

.adm-rfef-frame{
  position:relative;
  width:100%;
  min-height:1100px;
}
.adm-rfef-frame iframe{
  width:100%;
  height:1200px;
  border:0;
  display:block;
  background:#fff;
}
.adm-standings-error{
  padding:16px 18px;
  border:1px solid #e0b4b4;
  background:#fff7f7;
  color:#7a2525;
  border-radius:8px;
}

@media (max-width: 780px){
  .adm-table{min-width:0;table-layout:auto;}
  .adm-table .adm-wide{display:none;}
  .adm-table th,.adm-table td{padding:10px 6px;font-size:12px;}
  .adm-table .adm-pos{width:38px;}
  .adm-table .adm-team{width:auto;min-width:0;}
  .adm-crest{width:28px;height:28px;flex-basis:28px;}
  .adm-crest img{max-width:26px;max-height:26px;}
  .adm-team-name{white-space:normal;line-height:1.15;}
  .adm-standings-head{align-items:center;}
  .adm-source{text-align:left;}
}


/* v1.1: fallback visual para escudos */
.adm-crest-fallback-hidden{
  display:none;
}
.adm-crest img{
  background:transparent;
}
