.liga-billar-tabla {
margin: 1.5rem 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
} .tabla-wrapper {
overflow-x: auto;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(208, 54, 54, 0.1);
margin-bottom: 1rem;
background: white;
border: 1px solid #e0e0e0;
} .tabla-posiciones {
width: 100%;
border-collapse: collapse;
background: white;
font-size: 0.9rem;
min-width: 650px;
} .tabla-posiciones thead {
position: sticky;
top: 0;
z-index: 10;
}
.tabla-posiciones thead th {
background: linear-gradient(135deg, #2c3e50 0%, #4a6580 100%);
color: white;
padding: 0.7rem 0.5rem;
text-align: center;
font-weight: 600;
font-size: 0.85rem;
border-right: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.tabla-posiciones thead th:first-child {
border-top-left-radius: 9px;
padding-left: 0.8rem;
text-align: left;
}
.tabla-posiciones thead th:last-child {
border-top-right-radius: 9px;
border-right: none;
} .tabla-posiciones td {
padding: 0.6rem 0.5rem;
border-bottom: 1px solid #f0f0f0;
text-align: center;
vertical-align: middle;
transition: background-color 0.2s ease;
} .tabla-posiciones td:first-child {
padding-left: 0.8rem;
text-align: left;
font-weight: 600;
color: #7f8c8d;
} .tabla-posiciones td.jugador {
text-align: left;
padding-left: 0.8rem;
font-weight: 500;
} .tabla-posiciones tbody tr:nth-child(even) {
background-color: #f9fafb;
}
.tabla-posiciones tbody tr:hover {
background-color: #e8f4fd;
} .tabla-posiciones td.puntos {
font-weight: 800;
font-size: 1.1rem;
color: #e74c3c;
background-color: #fff5f5;
border: 2px solid #ffebee;
border-radius: 20px;
padding: 0.4rem 0.8rem;
margin: 0 0.2rem;
text-align: center;
display: inline-block;
min-width: 40px;
} .tabla-posiciones .jugador a {
text-decoration: none;
color: #2980b9;
font-weight: 600;
transition: all 0.2s ease;
display: inline-block;
padding: 0.2rem 0;
border-bottom: 1px dashed transparent;
}
.tabla-posiciones .jugador a:hover {
color: #e74c3c;
border-bottom: 1px dashed #e74c3c;
} .tabla-posiciones .medalla {
margin-right: 0.4rem;
font-size: 1.3rem;
vertical-align: middle;
} .liga-leyenda {
margin-top: 1rem;
font-size: 0.8rem;
color: #7f8c8d;
text-align: center;
padding: 0.8rem;
background: #f8f9fa;
border-radius: 6px;
line-height: 1.5;
}
.liga-leyenda strong {
color: #2c3e50;
font-weight: 600;
} @media (max-width: 768px) {
.liga-header h2 {
font-size: 1.5rem;
}
.tabla-wrapper {
border-radius: 8px;
margin: 0.5rem 0;
overflow: hidden;
}
.tabla-posiciones {
min-width: 100%;
display: table;
}
.tabla-posiciones thead {
display: table-header-group;
}
.tabla-posiciones thead th {
padding: 0.8rem 0.3rem;
font-size: 0.75rem;
}
.tabla-posiciones thead th:first-child {
padding-left: 0.5rem;
}
.tabla-posiciones tbody, 
.tabla-posiciones tr {
display: table-row;
}
.tabla-posiciones tr {
border: none;
border-radius: 0;
margin: 0;
box-shadow: none;
background: transparent;
}
.tabla-posiciones td {
display: table-cell;
padding: 0.7rem 0.3rem;
border-bottom: 1px solid #eaeaea;
text-align: center;
font-size: 0.8rem;
}
.tabla-posiciones td:first-child {
padding-left: 0.5rem;
text-align: left;
background: transparent;
font-weight: 600;
font-size: 0.85rem;
padding: 0.7rem 0.3rem;
border-bottom: 1px solid #eaeaea;
color: #7f8c8d;
}
.tabla-posiciones td:first-child::before {
content: none;
}
.tabla-posiciones td.jugador {
display: table-cell;
flex-direction: row;
align-items: center;
gap: normal;
padding: 0.7rem 0.3rem;
background: transparent;
border-bottom: 1px solid #eaeaea;
text-align: left;
}
.tabla-posiciones td.jugador::before {
content: none;
}
.tabla-posiciones td.jugador a {
font-size: 0.85rem;
width: auto;
padding: 0;
}
.tabla-posiciones td.puntos {
background: #fff5f5;
border: 2px solid #ffebee;
border-radius: 15px;
margin: 0 auto;
padding: 0.4rem 0.6rem;
font-size: 0.9rem;
font-weight: 800;
color: #e74c3c;
display: inline-block;
justify-content: center;
order: 0;
box-shadow: none;
text-shadow: none;
min-width: 30px;
}
.tabla-posiciones td.puntos::before {
content: none;
}
.tabla-posiciones .medalla {
display: inline-block;
margin-right: 0.3rem;
font-size: 1rem;
}
.liga-leyenda {
font-size: 0.7rem;
padding: 0.7rem;
line-height: 1.4;
}
} @media (max-width: 380px) {
.tabla-posiciones thead th {
padding: 0.6rem 0.2rem;
font-size: 0.7rem;
}
.tabla-posiciones td {
padding: 0.6rem 0.2rem;
font-size: 0.75rem;
}
.tabla-posiciones td.jugador a {
font-size: 0.8rem;
}
.tabla-posiciones td.puntos {
font-size: 0.85rem;
padding: 0.3rem 0.5rem;
}
.liga-leyenda {
font-size: 0.65rem;
padding: 0.6rem;
}
.liga-header h2 {
font-size: 1.3rem;
}
}
.handicap-cell {
text-align: center;
vertical-align: middle;
}
.handicap-badge {
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
border-radius: 50%;
font-weight: bold;
font-size: 12px;
text-align: center;
}
.handicap-0 { 
background: #28a745; 
color: white; 
}
.handicap-1 { 
background: #ffc107; 
color: black; 
}
.handicap-2 { 
background: #dc3545; 
color: white; 
}
.puntos-desglose {
font-size: 11px;
color: #666;
margin-top: 2px;
font-weight: normal;
}
.puntos strong {
display: block;
font-size: 14px;
} .estado-badge {
display: inline-block;
padding: 2px 6px;
border-radius: 10px;
font-size: 10px;
font-weight: bold;
margin-left: 5px;
vertical-align: middle;
}
.estado-baja {
background: #ffc107;
color: #000;
}
.estado-retirado {
background: #dc3545;
color: #fff;
}
.jugador-baja {
opacity: 0.7;
background-color: #fff9e6;
}
.jugador-retirado {
opacity: 0.5;
background-color: #ffe6e6;
text-decoration: line-through;
}
.jugador-baja .jugador a,
.jugador-retirado .jugador a {
color: #666 !important;
}
@media (max-width: 768px) {
.puntos-desglose {
display: none;
}
.handicap-badge {
width: 20px;
height: 20px;
line-height: 20px;
font-size: 10px;
}
.estado-badge {
font-size: 8px;
padding: 1px 4px;
}
}