/* --- Variables y Estilos Globales --- */
:root {
    --color-primary: #ffc107;
    --color-secondary: #ed1c24;
    --color-dark: #222;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-border: #dee2e6;
    --color-white: #fff;
    --font-main: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x:hidden !important ;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Header y Navegación --- */
.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-pizarra { height: 50px; }
.logo-listin { height: 40px; }

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
/* Botón activo del menú */
.navbar-nav > li > a.active {
    color: #ffc107;
    font-weight: 700;
    position: relative;
}

.navbar-nav > li > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 2px;
}
.filtros-listin .bold {
        font-weight: 600;
        color: #222;
        font-size: 13px;
        margin-bottom: 6px;
    }
    .filtros-listin .form-control {
        border-radius: 6px;
        border: 1px solid #d5d5d5;
        padding: 8px 12px;
        font-size: 14px;
        height: 40px;
        background-color: #fff;
        box-shadow: none;
        color: #333;
        width: 100%;
    }
    .filtros-listin .form-control:focus {
        border-color: #f26522;
        outline: 0;
        box-shadow: 0 0 0 2px rgba(242,101,34,.15);
    }
/* Si tu navbar ya tiene hover, reutilízalo */
.navbar-nav > li > a.active,
.navbar-nav > li > a:hover {
    color: #ffc107;
}
.navbar-nav a {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-nav a:hover { color: var(--color-secondary); }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Layout Principal con Publicidad --- */
.main-content-wrapper { 
    padding: 1rem 0; 
    position: relative;
    width: 95%;
    max-width: 1100px; /* Ancho máximo del contenido central */
    margin: 0 auto;
}

.ad-banner-top, .ad-banner-bottom {
    text-align: center;
    margin: 1rem 0;
}

.ad-banner-top img, .ad-banner-bottom img { display: inline-block; }
/* Publicidades Laterales (Skins) */
.ad-skin {
    position: absolute;
    top: 0;
    width: 160px;
    display: none; /* Oculto por defecto, el JS lo muestra */
    z-index: 10;
}

/* Posicionamiento: Las pegamos al borde exterior del contenedor */
.ad-skin-left {
    /* Empuja a la izquierda del contenedor de 1400px, centrado en la pantalla */
    right: calc(100% + 20px); 
}

.ad-skin-right {
    left: calc(100% + 20px);
}

.content-with-skins {
    display: block;
    width: 100%;
}
/* Cuando el contenedor padre recibe la clase 'has-skins', se abren las columnas */
.content-with-skins.has-skins {
    grid-template-columns: 160px 1fr 160px;
    gap: 1.5rem;
}
/* =====================================================
   GRID PRINCIPAL CON ÁREAS
   Fila 1: Título (2 columnas)
   Fila 2: Calendar header (2 columnas)
   Fila 3: Juegos (izquierda) | Posiciones (derecha)
   ===================================================== */
.main-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    grid-template-areas:
        "title title"
        "calhead calhead"
        "games standings";
    gap: 0 2rem;
    align-items: start;
    padding: 0 15px;
}

/* --- Asignación de áreas --- */
.page-title-container { grid-area: title; }
.calendar-header      { grid-area: calhead; }
.calendar-container   { grid-area: games; }
.standings-container  { grid-area: standings; }

/* --- Título Principal (ancho completo) --- */
.page-title-container {
    background-color: var(--color-primary);
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.page-title {
    font-family: var(--font-condensed);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
}

/* ==== CABECERA DEL CALENDARIO (ancho completo, mismo ancho que el título) ==== */
.calendar-header {
    width: 100%;
    padding: 0 1.25rem;
    background-color: #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Bloque de días */
.diasbloq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
    min-width: 0;
}

.date-range {
    text-align: center;
    font-weight: 500;
    color: var(--color-gray);
    font-size: 0.85rem;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.days-slider {
    display: flex;
    gap: 0.35rem;
    flex-grow: 1;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.brand {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.brand img {
    max-height: 240px;
    width: auto;
}

/* --- Día individual --- */
.day-item {
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
    background-color: var(--color-white);
    flex-shrink: 0;
}

.day-item .day-name {
    font-size: 0.65rem;
    color: var(--color-gray);
    text-transform: uppercase;
    line-height: 1.1;
}

.day-item .day-number {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}

.day-item:hover { background-color: #f0f0f0; }

.day-item.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Botones de navegación --- */
.btn-nav {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.btn-nav:hover { background-color: #f0f0f0; }

/* --- Contenedor de los juegos (columna izquierda, fila 3) --- */
.calendar-container {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.calendar-body { padding: 0; }

.games-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loader {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--color-gray);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto; 
}
.loaderRes{
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 5px;
}
/* --- Tarjeta de Juego --- */
.game-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: var(--color-white);
}

.game-card-header {
    background-color: var(--color-primary);
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-condensed);
}

.game-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-logo { width: 30px; height: 30px; }

.team-details { display: flex; flex-direction: column; }

.team-name-abbr { font-weight: 700; }

.pitcher-info { font-size: 0.8rem; color: var(--color-gray); }

.score-info { text-align: right; }

.score { font-size: 1.5rem; font-weight: 700; }

.record { font-size: 0.8rem; color: var(--color-gray); }

.game-card-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border); 
}

.btn-live {
  display: inline-block;
        color: #3d3d3d;
        padding: 6px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        font-weight: bold;
        border: 1px solid grey;
}

.btn-live:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

/* --- Tabla de Posiciones (columna derecha, fila 3) --- */
.standings-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-self: start;
}

.standings-header {
    background-color: var(--color-primary);
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.standings-header h2 {
    font-family: var(--font-condensed);
    font-size: 1.5rem;
    text-transform: uppercase;
}
  
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.standings-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 500;
    background: #000000;
}
.no-games-message{ 
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.standings-table tbody tr:last-child td { border-bottom: none; }

.standings-table .team-logo { width: 25px; height: 25px; }

/* --- Footer --- */
.main-footer {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo { margin-bottom: 0.5rem; }

.footer-tagline {
    font-size: 0.7rem;
    color: var(--color-gray);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.company-info{
   align-items: center; 
}
.company-info p { font-size: 0.9rem; line-height: 1.5; }

.footer-separator {
    width: 80px;
    height: 1px;
    background-color: var(--color-border);
    margin: 1rem 0;
}

.footer-copyright { font-size: 0.8rem; color: var(--color-gray); }

.footer-social a {
    color: var(--color-dark);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
    border: 1px solid var(--color-dark);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.footer-social a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-title {
    font-family: var(--font-condensed);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column ul { list-style: none; padding: 0;text-align: left; }

.footer-column ul li a {
    font-size: 0.9rem;
    color: var(--color-dark);
    line-height: 2;
}

.footer-column ul li a:hover { color: var(--color-secondary); }

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    text-align: left;
}
/* =====================================================
   PÁGINA DE POSICIONES
   ===================================================== */

.standings-page { 
    min-width: 0;
     width: 100%;
     padding: 0 15px;
}

/* --- Subtítulo (Regular / Post Temporada) --- */
.standings-subheader {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;

}

.standings-subheader h2 {
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
}

/* --- Contenedor de la tabla completa --- */
.standings-table-wrapper {
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.standings-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 900px;
}

.standings-full-table thead {
    background-color: #000;
    color: var(--color-white);
}

.standings-full-table thead th {
    padding: 0.6rem 0.4rem;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.standings-full-table thead th.col-team {
    text-align: left;
    padding-left: 1rem;
}

.standings-full-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}

.standings-full-table tbody tr:hover {
    background-color: #f8f9fa;
}

.standings-full-table tbody tr:last-child {
    border-bottom: none;
}

.standings-full-table tbody td {
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.standings-full-table tbody td.col-logo {
    width: 40px;
    padding-left: 0.75rem;
    padding-right: 0;
}

.standings-full-table tbody td.col-team-name {
    text-align: left;
    font-weight: 700;
    padding-left: 0.5rem;
}

.standings-full-table tbody td.col-team-name a {
    color: var(--color-dark);
    transition: color 0.2s;
}

.standings-full-table tbody td.col-team-name a:hover {
    color: var(--color-secondary);
}

.standings-full-table .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}
/* =====================================================
   PÁGINA DE ESTADÍSTICAS
   ===================================================== */

.stats-page {
    min-width: 0;
    width: 100%;
}

/* --- Tabs principales --- */
.stats-tabs-main {
    display: flex;
    gap: 0;
    margin-top: 0;
    padding: 10px;
    background-color: black;
    border-bottom: 2px solid var(--color-border);
}

.stats-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.85rem 1rem;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-white);
    border-radius: 5px;
    transition: all 0.2s;
}

.stats-tab-btn:hover {
    color: var(--color-dark);
    background-color: var(--color-primary);
}

.stats-tab-btn.active {
    color: var(--color-dark);
    background-color: var(--color-primary);
}

/* --- Contenido de tabs principales --- */
.stats-tab-content {
    display: none;
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
        min-height: 200px;
}

.stats-tab-content.active {
    display: block;
}

/* --- Sub-tabs (Liga Americana / Nacional) --- */
.stats-subtabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.stats-subtab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-gray);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.stats-subtab-btn:hover {
    color: var(--color-dark);
}

.stats-subtab-btn.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.stats-subtab-content {
    display: none;
}

.stats-subtab-content.active {
    display: block;
}

/* ==== CAMBIO CLAVE: grid de 3 columnas ====
   Columna 1: Líderes en Bateo
   Columna 2: Líderes en Pitcheo
   Columna 3: Líderes Colectivos
*/
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    position: relative;
}

/* --- Bloque genérico (título + cards apiladas) --- */
.stats-block h3 {
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
}

/* Las cards se apilan verticalmente dentro de cada bloque */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* --- Card individual de líder --- */
.stats-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-card-header {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stats-card-body {
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.stats-player-img {
    width: 60px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: stretch;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.4rem;
    padding: 0.15rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-list li:last-child {
    border-bottom: none;
}

.stats-list li a {
    color: var(--color-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-list li a:hover {
    color: var(--color-secondary);
}

.stats-list li span {
    color: var(--color-gray);
    font-size: 0.7rem;
    font-weight: 500;
}
.bTemporada{
    background-color: var(--color-primary);
    color: #000;
    padding: 7px;
    font-size: 12pt;
    font-weight: 600;
    width: 100%;
    text-align: center;
    margin-top: 44px;
    border-radius: 5px 5px 0 0;
}
.stats-card-footer {
    padding: 0.4rem 0.75rem;
    border-top: 1px solid var(--color-border);
    text-align: right;
    font-size: 0.75rem;
}

.stats-card-footer a {
    color: var(--color-secondary);
    font-weight: 700;
}

.stats-card-footer a:hover {
    text-decoration: underline;
}

/* --- Columna de Líderes Colectivos --- */
.stats-col-collective h3 {
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
}

.stats-collective {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.stats-collective-tabs {
    display: flex;
    background-color: var(--color-dark);
}

.stats-collective-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.55rem;
    color: #fff;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.stats-collective-btn:hover {
    color: var(--color-white);
}

.stats-collective-btn.active {
    background-color: var(--color-primary);
    color: black;
}

.stats-collective-content {
    display: none;
}

.stats-collective-content.active {
    display: block;
}

.stats-collective-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.stats-collective-table thead {
    background-color: #5F5F5F;
    color: var(--color-white);
}

.stats-collective-table th {
    padding: 0.4rem 0.2rem;
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
}

.stats-collective-table th:first-child {
    text-align: left;
    padding-left: 0.5rem;
}

.stats-collective-table td {
    padding: 0.4rem 0.2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gray);
}

.stats-collective-table td:first-child {
    text-align: left;
    padding-left: 0.5rem;
    color: var(--color-dark);
    font-weight: 700;
}

.stats-collective-table tbody tr:hover {
    background-color: #f8f9fa;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
    font-style: italic;
}
/* =====================================================
   PÁGINA DE EQUIPOS
   ===================================================== */

.teams-page {
    min-width: 0;
    width: 100%;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.team-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.team-card-name {
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    line-height: 1.3;
}

/* =====================================================
   PERFIL EQUIPO
   ===================================================== */
.team-profile-page {
    min-width: 0;
    width: 100%;
}

/* Header del equipo */
.team-profile-header {
    background-color: var(--color-white);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.team-profile-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-profile-header h2 {
    font-family: var(--font-condensed);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.team-profile-header p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* Tabs del equipo */
.team-tabs {
    display: flex;
    gap: 0;
    background-color: black;
    padding: 8px;
}

.team-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.team-tab-btn:hover { background-color: rgba(255,193,7,0.2); }
.team-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.team-tab-content {
    display: none;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}
.team-tab-content.active { display: block; }

/* Grid de líderes del equipo: 2 columnas (Bateo | Pitcheo) */
.team-leaders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.team-leaders-col h3 {
    font-family: var(--font-condensed);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
}

.team-leaders-col .stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =====================================================
   ROSTER (2 columnas con scroll)
   ===================================================== */
.roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.roster-column h3 {
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
    color: var(--color-dark);
}

.roster-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    background-color: var(--color-white);
}

.roster-scroll::-webkit-scrollbar {
    width: 8px;
}

.roster-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.roster-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: 4px;
}

.roster-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
}

.roster-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.roster-table tr:hover { background-color: #f8f9fa; }

.roster-table .roster-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
}

.roster-table .roster-pos {
    text-align: right;
    color: var(--color-gray);
    font-weight: 700;
}

/* =====================================================
   CALENDARIO MENSUAL (dentro del detalle de equipo)
   ===================================================== */

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--border-radius);
}

.cal-month-title {
    font-family: var(--font-condensed);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cal-nav-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.calendar-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.calendar-legend .dot.casa { background-color: var(--color-secondary); }
.calendar-legend .dot.visitante { background-color: var(--color-gray); }
.calendar-legend .dot.hoy { background-color: var(--color-primary); }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.cal-weekday {
    text-align: center;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-gray);
    padding: 0.4rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cal-day {
    background-color: var(--color-white);
    min-height: 90px;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.cal-day.empty {
    background-color: #f8f9fa;
}

.cal-day.hoy {
    background-color: #fffbe6;
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.cal-day.con-juego:hover {
    background-color: #f8f9fa;
}

.cal-day-number {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    text-align: right;
}

.cal-day-games {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.cal-game {
    font-size: 0.68rem;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    cursor: pointer;
    transition: transform 0.15s;
}

.cal-game:hover {
    transform: scale(1.03);
}

.cal-game.casa {
    background-color: rgba(237, 28, 36, 0.12);
    border-left: 3px solid var(--color-secondary);
}

.cal-game.visitante {
    background-color: rgba(108, 117, 125, 0.12);
    border-left: 3px solid var(--color-gray);
}

.cal-game-rival {
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-game-result {
    color: var(--color-gray);
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .team-leaders-grid {
        grid-template-columns: 1fr;
    }
    .team-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .roster-grid {
        grid-template-columns: 1fr;
    }
    .roster-scroll {
        max-height: 350px;
    }
    .cal-day {
        min-height: 70px;
        padding: 0.25rem;
    }
    .cal-game {
        font-size: 0.6rem;
        padding: 0.15rem 0.2rem;
    }
    .cal-weekday {
        font-size: 0.65rem;
    }
}

/* =====================================================
   PERFIL JUGADOR
   ===================================================== */
.player-profile-page {
    min-width: 0;
    width: 100%;
}

/* --- HEADER: foto | bloque info (izquierda) + tabs contenido (derecha) --- */
.player-profile-header {
    background-color: var(--color-white);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

 

/* Bloque de la derecha: se divide en 2 columnas (info | tabs contenido) */
.player-info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Columna izquierda del bloque: nombre + meta + tabs */
.player-info-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-name {
    font-family: var(--font-condensed);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--color-dark);
    line-height: 1.1;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color:black;
    font-size: 0.9rem;
    background-color: #ffc107;
}

.player-meta .player-number {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Tabs Info / Temporada */
.player-info-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
}

.player-info-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.player-info-btn:hover {
    color: var(--color-dark);
}

.player-info-btn.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Columna derecha del bloque: contenido de las tabs */
.player-info-right {
    min-width: 0;
}

.player-info-content {
    display: none;
}

.player-info-content.active {
    display: block;
}

.player-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.player-info-table td {
    padding: 0.35rem 0;
    vertical-align: top;
}

.player-info-table td:first-child {
    color: #000000;
    width: 45%;
    font-weight: 500;
    background-color: #ffc107;
    padding: 5px 10px;
    border: 1px solid rgb(255, 255, 255);
}

.player-info-table td:last-child {
    font-weight: 600;
    color: var(--color-dark);
    padding-left: 10px;
}

.temp-label {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.player-season-table {
    width: 100%;
    border-collapse: collapse;
}

.player-season-table th,
.player-season-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
}

.player-season-table th {
        background-color: #333333;
    font-family: var(--font-condensed);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* --- Tabs secundarios del jugador (Estadísticas / Splits / Juego por juego) --- */
.player-tabs {
    display: flex;
    gap: 0;
    background-color: black;
    padding: 8px;
}

.player-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.player-tab-btn:hover { background-color: rgba(255,193,7,0.2); }
.player-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.player-tab-content {
    display: none;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
}
.player-tab-content.active { display: block; }

/* Título de sección dentro de las tablas */
.tab-section-title {
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.4rem;
}

/* Scroll horizontal para tablas anchas */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

/* Tabla de estadísticas del jugador */
.player-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 700px;
}

.player-stats-table thead {
    background-color: #000;
    color: var(--color-white);
}

.player-stats-table th {
    padding: 0.5rem 0.4rem;
    font-family: var(--font-condensed);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.player-stats-table td {
    padding: 0.5rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.player-stats-table tbody tr:hover {
    background-color: #f8f9fa;
}

.player-stats-table .total-row {
    font-weight: 700;
    background-color: #f1f1f1;
    border-top: 2px solid var(--color-dark);
}

.player-stats-table td a {
    color: var(--color-dark);
    font-weight: 600;
}

.player-stats-table td a:hover {
    color: var(--color-secondary);
}

.player-stats-table .sep-col {
    width: 1px;
    background-color: var(--color-border);
    padding: 0;
}

.player-stats-table .group-header {
    background-color: #ffc107;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: black;
}

/* --- Splits: bloques apilados --- */
.splits-block {
    margin-bottom: 1.5rem;
}

.splits-block:last-child {
    margin-bottom: 0;
}

.splits-title {
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    background-color: #f1f1f1;
    border-left: 4px solid var(--color-primary);
    border-radius: 3px;
}

/* No data message */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
    font-style: italic;
}
/* =====================================================
   SUB-SUB-TABS: Normales / Expandidas / Avanzadas
   ===================================================== */

.stats-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-subtabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.stats-subtabs-row .tab-section-title {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.stats-subsubtab-buttons {
    display: flex;
    gap: 0.25rem;
}

.stats-subsubtab-btn {
    background-color: #f1f1f1;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.stats-subsubtab-btn:hover {
    background-color: #e2e2e2;
    color: var(--color-dark);
}

.stats-subsubtab-btn.active {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.stats-subsubtab-panel {
    display: none;
}

.stats-subsubtab-panel.active {
    display: block;
}
/* ==== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE ERROR ==== */
.error-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.error-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    border-top: 8px solid var(--color-secondary);
}

.error-card h1 {
    font-family: var(--font-condensed);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-secondary);
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.error-card h2 {
    font-family: var(--font-condensed);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.error-card p {
    color: var(--color-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-error-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-dark);
    font-family: var(--font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-error-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
} 
    /* =======================================================
       1. CONTENEDOR GENERAL Y PERFIL DEL EQUIPO
       ======================================================= */
    #ab-tabla-equipo-interna { background-color: #f4f4f4; padding-bottom: 40px; }
    .headpiz { background-color: #ffcc00; text-align: center; padding: 10px; font-weight: 800; font-size: 22px; color: #000; text-transform: uppercase; margin-bottom: 0; }
    .perfilEcont { display: flex; background-color: #333333; color: #ffffff; border-bottom: 4px solid #ffcc00; }
    .perfilEcont .imgequipo { background: #fff; padding: 15px; width: 15%; display: flex; align-items: center; justify-content: center; border-right: 2px solid #ffcc00; }
    .perfilEcont .imgequipo img { max-width: 80px; max-height: 80px; object-fit: contain; }
    .perfilEcont .infoequipo { width: 85%; padding: 20px; display: flex; align-items: center; }
    .perfilEcont .infoequipo h2 { margin: 0 0 5px 0; font-weight: 800; font-size: 26px; color: #fff; text-transform: capitalize; }
    .perfilEcont .infoequipo h5 { margin: 0; font-size: 14px; color: #cccccc; }

    /* =======================================================
       2. TABS PERSONALIZADOS
       ======================================================= */
    .PPesta { background: #fff; padding: 10px 10px 0 10px; border-bottom: 2px solid #ffcc00; }
    .listin-tabs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
    .listin-tabs li { padding: 10px 20px; cursor: pointer; font-weight: 700; font-size: 14px; color: #333; border: 1px solid transparent; margin-bottom: -2px; }
    .listin-tabs li.active { background-color: #ffcc00; border: 1px solid #ffcc00; border-bottom-color: #ffcc00; color: #000; }
    .listin-tab-content { background: #f4f4f4; padding: 20px; }

    /* =======================================================
       3. FLEXBOX GRID (Reemplazo de Bootstrap)
       ======================================================= */
    .flex-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
    .flex-col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 10px; box-sizing: border-box; }
    .flex-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 10px; box-sizing: border-box; }
    .flex-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 10px; box-sizing: border-box; }
    @media (max-width: 767px) {
        .flex-col-6, .flex-col-8, .flex-col-4 { flex: 0 0 100%; max-width: 100%; margin-bottom: 15px; }
    }

    /* =======================================================
       4. HOME (Líderes)
       ======================================================= */
    .stats-block { background: #fff; border: 1px solid #e0e0e0; padding: 15px; border-radius: 4px; height: 100%; box-sizing: border-box; }
    .stats-block h3 { margin-top: 0; border-bottom: 2px solid #333; padding-bottom: 10px; margin-bottom: 15px; color: #333; font-size: 18px; font-weight: 700; text-transform: uppercase; }

    /* =======================================================
       5. TABLA COMPLETA (VER TODOS)
       ======================================================= */
    .btn-volver { background-color: #ffcc00; color: #000; font-weight: bold; border-radius: 4px; border: 1px solid #ccc; padding: 8px 15px; cursor: pointer; transition: 0.2s; }
    .btn-volver:hover { background-color: #e6b800; }
    .standings-full-table { width: 100%; border-collapse: collapse; background: #fff; }
    .standings-full-table th { background: #333; color: #fff; padding: 8px 10px; font-size: 13px; text-align: center; border: 1px solid #444; white-space: nowrap; }
    .standings-full-table td { padding: 8px 10px; border-bottom: 1px solid #ddd; font-size: 13px; text-align: center; color: #333; }
    .standings-full-table td.col-team-name { text-align: left; font-weight: bold; }
    .standings-full-table tr:nth-child(even) { background-color: #f9f9f9; }

    /* =======================================================
       6. CALENDARIO (Estilo Listin)
       ======================================================= */
    .calendar-nav-months { display: flex; justify-content: center; gap: 2px; margin-bottom: 20px; }
    .calendar-nav-months a { background-color: #ffcc00; color: #000; padding: 8px 15px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid #e6b800; display: inline-block; }
    .calendar-nav-months a.active { background-color: #000; color: #fff; border-color: #000; }
    
    .calendar-legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; font-size: 13px; font-weight: 600; }
    .calendar-legend span.box { display: inline-block; width: 15px; height: 15px; border: 1px solid #333; margin-right: 5px; vertical-align: middle; }
    .calendar-legend span.box.casa { background-color: #ffcc00; }
    .calendar-legend span.box.visitante { background-color: #fff; }
    .calendar-legend span.box.hoy { background-color: red; border-color: red; }
/* =====================================================
   CALENDARIO RESPONSIVE (DETALLE EQUIPOS)
   ===================================================== */

/* Contenedor con scroll horizontal */
.calendar-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* La tabla mantiene un ancho mínimo para que no se aplaste */
.calendar-table {
    width: 100%;
    min-width: 800px; /* Fuerza scroll en pantallas pequeñas */
    border-collapse: collapse;
    background: #fff;
    border-top: 3px solid #ffcc00;
}

/* Estilos existentes que ya tienes (los dejo aquí por si acaso) */
.calendar-table th {
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid #444;
}

.calendar-table td {
    background: #fff;
    border: 1px solid #333;
    padding: 0;
    vertical-align: top;
    width: 14.28%;
    height: 120px;
}

.calendar-table td.empty {
    background: #fff;
    border: 1px solid #333;
}

.calendar-table td.today {
    border: 2px solid red;
}

.cal-header {
    background: #333;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding: 3px;
}

.cal-header.casa {
    background: #ffcc00;
    color: #000;
}

.cal-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

.cal-game .vs-text {
    font-size: 11px;
    color: #333;
    margin-bottom: 2px;
}

.cal-game img {
    max-width: 35px;
    max-height: 35px;
    margin-bottom: 5px;
}

.cal-game .result {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 3px;
}

.cal-game .result.win { color: green; }
.cal-game .result.lose { color: red; }
.cal-game .result.time { color: #333; font-weight: normal; font-size: 12px; }

.cal-game .pitchers {
    font-size: 10px;
    color: #666;
    text-align: left;
    width: 100%;
    line-height: 1.2;
    margin-top: 3px;
}

.cal-game .pitchers span {
    font-weight: bold;
    color: #333;
}

/* =====================================================
   AJUSTES RESPONSIVE PARA MÓVIL
   ===================================================== */
@media (max-width: 768px) {
    /* Hacer la tabla un poco más compacta */
    .calendar-table {
        min-width: 650px; /* Un poco menos ancho para que no se vea tan grande */
    }

    .calendar-table th {
        padding: 6px 4px;
        font-size: 11px;
    }

    .calendar-table td {
        height: 90px; /* Celdas más bajas */
    }

    .cal-header {
        font-size: 11px;
        padding: 2px;
    }

    .cal-game {
        padding: 3px;
        font-size: 10px;
    }

    .cal-game .vs-text {
        font-size: 9px;
    }

    .cal-game img {
        max-width: 25px;
        max-height: 25px;
        margin-bottom: 3px;
    }

    .cal-game .result {
        font-size: 11px;
    }

    .cal-game .pitchers {
        font-size: 8px;
        line-height: 1.1;
    }

    /* Navegación de meses */
    .calendar-nav-months {
        flex-wrap: wrap;
        gap: 4px;
    }

    .calendar-nav-months a {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Leyenda */
    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 11px;
        justify-content: center;
    }
}
    /* =======================================================
       7. ROSTER
       ======================================================= */
    .rostercont h3, .bullcont h3 { background: #ffcc00; color: #000; padding: 8px; text-align: center; font-weight: 800; font-size: 16px; text-transform: uppercase; margin: 0 0 15px 0; }
    .Rostab { width: 100%; margin-bottom: 15px; border: 1px solid #ddd; background: #fff; }
    .Rostab thead th { background: #333; color: #fff; text-align: center; padding: 6px; font-size: 13px; font-weight: 700; }
    .Rostab tbody td { text-align: center; padding: 6px; border-bottom: 1px solid #eee; font-size: 13px; }
    .Rostab tbody tr:nth-child(even) { background-color: #f9f9f9; }
    .Rostab tbody td a { color: #333; text-decoration: none; }
    .bullcont { background: #333; min-height: 100%; padding-bottom: 15px; border-radius: 4px; }
    .Rostabullbody { width: 100%; border-collapse: collapse; }
    .Rostabullbody td { text-align: center; padding: 10px 8px; border-bottom: 1px solid #444; color: #fff; font-size: 13px; }
    .Rostabullbody td a { color: #fff; text-decoration: none; }
  
    /* =======================================================
       ESTILOS PERFIL JUGADOR (Responsive)
       ======================================================= */
    .perfildatos { margin-top: 20px; }
    
    /* Tabs principales */
    .listin-player-tabs {
        display: flex;
        flex-wrap: wrap; /* Para móvil */
        list-style: none;
        padding: 0;
        margin: 0;
        border-bottom: 2px solid #ffcc00;
    }
    .listin-player-tabs li {
        padding: 10px 20px;
        font-weight: 700;
        font-size: 15px;
        color: #333;
        cursor: pointer;
        background: #f4f4f4; 
        border-bottom: none; 
    }
    .listin-player-tabs li.active {
        background: #ffcc00;
        color: #000;
        border-color: #ffcc00;
    }

    /* Contenedores de tablas - Scroll Horizontal para Móvil */
    .table-responsive-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }

    .PJugTableCont { margin-bottom: 30px; }
    
    .PJTHead { 
        background-color: #ffcc00; 
        color: #000; 
        text-align: center; 
        padding: 10px; 
        font-weight: 800; 
        font-size: 18px; 
        text-transform: uppercase; 
        margin-bottom: 0; 
        border: 1px solid #e6b800;
    }

    .PJName { 
        background-color: #333; 
        color: #fff; 
        text-align: center; 
        padding: 5px; 
        font-weight: 700; 
        font-size: 14px; 
        text-transform: uppercase; 
        margin-bottom: 10px; 
    }

    .PJTTabs { background: #fff;}
    .PJTTabs ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
    .PJTTabs ul li { margin-bottom: -2px; }
    .PJTTabs ul li a { 
        display: block; 
        padding: 10px 20px; 
        font-weight: 700; 
        font-size: 14px; 
        color: #666; 
        text-decoration: none; 
        border: 1px solid transparent; 
        border-bottom: none; 
        cursor: pointer;
    }
    .PJTTabs ul li.active a { 
        background-color: #333; 
        color: #ffcc00; 
        border-color: #333; 
    }

    /* Tablas */
    .Stats, .Stats2 { 
        width: 100%; 
        border-collapse: collapse; 
        background: #fff; 
        font-size: 12px; 
        white-space: nowrap; /* Evita que el texto se quiebre en varias líneas */
    }
    .Stats th, .Stats2 th { 
        background-color: #333; 
        color: #fff; 
        padding: 8px; 
        text-align: center; 
        border: 1px solid #444; 
        font-weight: 700; 
    }
    .Stats td, .Stats2 td { 
        padding: 6px 8px; 
        text-align: center; 
        border-bottom: 1px solid #ddd; 
        border-right: 1px solid #eee;
        color: #333; 
    }
    .Stats tbody tr:nth-child(even), .Stats2 tbody tr:nth-child(even) { background-color: #f9f9f9; }
    .Stats tbody tr:hover, .Stats2 tbody tr:hover { background-color: #f1f1f1; }
    
    .Stats a, .Stats2 a { color: #2243f2; text-decoration: none; font-weight: bold; }
    .Stats a:hover, .Stats2 a:hover { text-decoration: underline; }
    
    .tab-pane { display: none; }
    .tab-pane.active { display: block; } 
     /* =====================================================
   BOXSCORE - LA PIZARRA (TABS)
   ===================================================== */
#boxscore-wrapper {
    background-color: #f4f4f4;
    padding-bottom: 40px;
}

/* Header superior */
.headpiz {
    background-color: #ffcc00;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    font-size: 22px;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 0;
}
/* =====================================================
   BOXSCORE - MARCADOR Y LINE SCORE
   ===================================================== */

.gamecont {
    background: #fff;
    margin-bottom: 20px;
}

.linescore {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #ffcc00;
}

/* Cuadros de los equipos */
.Team {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 10px;
    flex-shrink: 0;
}

.Team .Timg span {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.Team p {
    margin: 5px 0 0 0;
    font-size: 14px;
    font-weight: bold;
}

/* Contenedor central (Tablas + B/S/O) */
.lscont {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Contenedor de la tabla unificada */
.Tabls {
    width: 100%;
    /* Eliminamos display: flex para que la tabla ocupe el 100% de forma natural */
}

/* El contenedor con scroll horizontal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tabla unificada (Innings + C/H/E) */
.ls {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

/* Celdas de la tabla */
.ls td {
    padding: 8px 4px;
    font-size: 13px;
    border: 1px solid #eee;
}

/* Columna del nombre del equipo */
.ls .lsequipo {
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
    width: 80px;
    border-left: none;
    white-space: nowrap;
}

/* Columnas C, H, E (separador visual) */
.ls .sep-col {
    border-left: 2px solid #ccc;
    font-weight: bold;
    background-color: #f9f9f9;
    width: 40px;
}

/* Fila de cabecera (números e innings) */
.ls tr:first-child td {
    background-color: #f4f4f4;
    font-size: 11px;
    color: #666;
    font-weight: bold;
}

/* Barra de B/S/O */
.lsstat {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 5px 15px;
    background: #ffcc00;
    font-size: 12px;
    font-weight: bold;
}

.circle1, .circle2 {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 3px;
}
.circle1 { background: #333; }
.circle2 { background: #fff; border: 1px solid #333; }

.team-records {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    background: #fff;
}

/* =====================================================
   RESPONSIVE PARA MÓVIL (BOXSCORE)
   ===================================================== */
@media (max-width: 768px) {

    /* Equipos arriba, uno al lado del otro */
    .linescore {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .Team {
        width: 50%;
        padding: 8px;
    }

    .Team .Timg span {
        font-size: 32px;
    }

    .Team p {
        font-size: 11px;
        margin-top: 2px;
    }

    /* Contenedor de las tablas baja a la siguiente línea */
    .lscont {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    /* Forzar un ancho mínimo para activar el scroll horizontal en el móvil */
    .ls {
        min-width: 500px;
    }

    /* Centrar el contador B/S/O */
    .lsstat {
        justify-content: center;
        padding: 8px;
        margin-top: 5px;
    }

    /* Ocultar duplicado de récords en móvil */
    .team-records {
        display: none;
    }
}

/* TABS */
.bs-tabs-nav {
    display: flex;
    background: #333;
    flex-wrap: wrap;
    border-bottom: 3px solid #ffcc00;
}
.bs-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 10px;
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    border-right: 1px solid #555;
    transition: 0.2s;
}
.bs-tab-btn:hover {
    background: #444;
}
.bs-tab-btn.active {
    background: #ffcc00;
    color: #000;
}
.bs-tab-pane {
    display: none;
}
.bs-tab-pane.active {
    display: block;
}

/* Tablas de jugadores */
.Tabposgamecast {
    margin-bottom: 20px;
    background: #fff;
}
.Tablagametit2 {
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}
.Tablagametit2 img {
    height: 24px;
    width: auto;
}
.Tablagame {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.Tablagame th {
    background: #000;
    color: #fff;
    padding: 8px 5px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #333;
}
.Tablagame th:not(:first-child) {
    text-align: center;
}
.Tablagame td {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}
.Tablagame td:not(:first-child) {
    text-align: center;
}
.Tablagame tbody tr:nth-child(even) {
    background: #f9f9f9;
}
.Tablagame a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.Tablagame a:hover {
    color: #ffcc00;
}
.total-row {
    background: #e0e0e0 !important;
    font-weight: bold;
}
.PieTablagame {
    padding: 10px 15px;
    background: #fff;
    font-size: 12px;
    color: #333;
    border-top: 1px solid #ddd;
}

/* Anotaciones */
.Anotaciones {
    background: #fff;
    padding: 15px;
}
.Anotatit {
    font-size: 16px;
    font-weight: bold;
    background: #ffcc00;
    padding: 8px 15px;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
}
.text-center{
    text-align: center !important;
}
.play-inning {
    margin-bottom: 20px;
}
.play-inning-title {
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #ffcc00;
    margin-bottom: 10px;
    padding-bottom: 5px;
}
.play-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}
.play-item.is-run {
    background: #fffde7;
    padding: 8px;
}
.play-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
/* =====================================================
   DISEÑO DE ANOTACIONES Y JUGADAS (TIMELINE LISTIN)
   ===================================================== */

/* Botones Sub-Tabs */
.play-subtab-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.play-subtab-btn:hover {
    background: #eee;
    color: #333;
}
.play-subtab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Timeline de jugadas */
.play-timeline {
    position: relative;
    padding-left: 10px;
}

/* Cabecera de Inning (Ej: 4º Baja) */
.play-inning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}
.inning-badge {
    background: #ffc107; /* Amarillo Listin */
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Tarjeta de Jugada */
.play-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 8px;
    align-items: flex-start;
    transition: all 0.2s;
}

/* Estilo especial para jugadas que son carreras */
.play-card.run-play {
    background: #fffdf5; /* Fondo crema suave */
    border-left: 4px solid #ed1c24; /* Borde rojo Listin */
}

/* Escudo del equipo */
.play-team img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Detalles del texto */
.play-details {
    flex-grow: 1;
}

/* Etiqueta de "Carrera" */
.play-tag {
    display: inline-block;
    background: #ed1c24;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.play-text {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
} 
 
 
.text-muted {
    color: #6c757d !important;
}
    /* =======================================================
       RESPONSIVE PARA EL HEADER DEL JUGADOR
       ======================================================= */
    @media (max-width: 768px) {
        /* Header */
        .player-profile-header {
            flex-direction: column !important;
            text-align: center;
        }
        .player-photo-block {
            width: 100% !important;
            padding: 10px;
        }
        .player-photo-block img.player-img {
            width: 120px;
            height: 140px;
        }
        .player-info-block {
            width: 100% !important;
            flex-direction: column;
            padding: 10px;
        }
        .player-info-right {
            margin-top: 15px;
            width: 100%;
        }
        .player-info-table td {
            font-size: 13px;
        }
        
        /* Tabs */
        .listin-player-tabs li {
            flex: 1 1 auto;
            text-align: center;
            padding: 10px 5px;
            font-size: 13px;
        }
        
        /* Tablas */
        .PJTHead {
            font-size: 16px;
        }
        .Stats th, .Stats2 th, .Stats td, .Stats2 td {
            padding: 5px;
            font-size: 11px;
        }
    } 

     
    /* =======================================================
       ESTILOS DE LA INTERFAZ DE JUEGO EN VIVO (Estilo Listin)
       ======================================================= */
    .live-page-wrapper { 
        color: #fff;
        font-family: Arial, Helvetica, sans-serif;
        padding: 20px 0;
        min-height: 80vh;
    }

    /* Header */
    .live-header {
        background-color: #ffcc00;
        color: #000;
        text-align: center;
        padding: 10px;
        font-size: 22px;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    /* Scoreboard */
    .scoreboard-container {
        display: flex;
        background-color: #ffcc00;
        padding: 5px;
        gap: 5px;
        align-items: stretch;
    }
    .team-box {
        width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-weight: bold;
        font-size: 14px;
    }
    .team-box.left { background-color: #ffcc00; color: #000; }
    .team-box.right { background-color: #001a4d; color: #fff; } /* Azul marino */
    .team-box img { max-width: 60px; max-height: 60px; }
    
    .score-table-wrapper {
        flex-grow: 1;
        background-color: #fff;
        border: 1px solid #ccc;
    }
    .score-table { width: 100%; border-collapse: collapse; text-align: center; color: #000; }
    .score-table th { padding: 5px; font-size: 13px; border-bottom: 1px solid #eee; }
    .score-table td { padding: 8px 5px; font-size: 14px; border-bottom: 1px solid #eee; font-weight: bold; }
    .score-table td.team-name { text-align: left; padding-left: 15px; }
    .score-table th.marcador { background-color: #f1f1f1; }

    /* Barra de Conteo */
    .count-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #ffcc00;
        color: #000;
        padding: 5px 15px;
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 10px;
        border-top: 1px solid #e6b800;
    }
    .counts { display: flex; gap: 15px; align-items: center; }
    .count-item { display: flex; align-items: center; gap: 5px; }
    .circle { width: 12px; height: 12px; border-radius: 50%; background-color: #000; display: inline-block; }
    .circle.empty { background-color: transparent; border: 1px solid #000; }

    /* Cuerpo Principal (2 Columnas) */
    .main-game-body {
        display: flex; 
        align-items: stretch;
        min-height: 500px;
    }
 /* Sub-cabecera del Estadio y Estatus */
    .Stadiumdata {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #000;
        color: #fff;
        padding: 8px 15px;
        font-size: 14px;
        font-weight: bold;
        border-bottom: 2px solid #ffcc00;
    }
    .Stadiumdata .Gamestat {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .Stadiumdata .icon-arrow {
        color: red;
        font-size: 12px;
    }
    /* Columna Izquierda */
    .left-col {
        flex: 0 0 40%;
        display: flex;
        flex-direction: column;
    }
    .live-tabs {
        display: flex;
        gap: 2px;
    }
    .live-tabs .tab-btn {
        padding: 8px 20px;
        background-color: #444;
        color: #ccc;
        border: none;
        cursor: pointer;
        font-weight: bold;
        font-size: 14px;
    }
    .live-tabs .tab-btn.active {
        background-color: #ffcc00;
        color: #000; 
    }
    .tab-content {
        background-color: #333;
        flex-grow: 1;
        padding: 10px; 
    }
    .play-box {
        background-color: #fff;
        color: #000;
        padding: 15px;
        border-radius: 2px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    /* Columna Derecha */
    .right-col {
        flex: 0 0 60%;
        border-left: 3px solid #ffcc00;
        display: flex;
        flex-direction: column;
        background-color: #333;
    }
    .right-header {
        display: flex;
        justify-content: space-between;
        background-color: #000;
        color: #fff;
        padding: 10px 15px;
        font-weight: bold;
        font-size: 14px;
        border-bottom: 2px solid #ffcc00;
    }
     /* Estilos del campo y las bases */
    .baseball-field {
        flex-grow: 1;
        position: relative;
        background-color: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 20px;
    }

    .field-graphic {
        position: relative;
        width: 100%;
        max-width: 450px;
        aspect-ratio: 1 / 1;
        background: url('https://lapizarra.listindiario.com/images/imagenes/Campo.svg') no-repeat center center;
        background-size: contain;
    }

    .pos-label {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.75);
        color: #fff;
        border: 1px solid #fff;
        padding: 2px 6px;
        font-size: 11px;
        font-weight: bold;
        white-space: nowrap;
        border-radius: 3px;
        z-index: 10;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .pos-LF { top: 30%; left: 15%; }
    .pos-RF { top: 30%; left: 85%; }
    .pos-CF { top: 15%; left: 50%; }
    .pos-SS { top: 48%; left: 30%; }
    .pos-2B { top: 48%; left: 70%; }
    .pos-3B { top: 58%; left: 25%; }
    .pos-1B { top: 58%; left: 75%; }
    .pos-C  { bottom: 10%; left: 50%; }

    .base {
        position: absolute;
        width: 14px;
        height: 14px;
        background-color: #fff;
        border: 2px solid #333;
        transform: rotate(45deg);
        z-index: 5;
        transition: background-color 0.3s;
    }

    .base.base-1B {
        bottom: 36%;
        right: 33%;
    }
    .base.base-2B {
        top: 45%;
        left: 50%;
        margin-left: -7px;
    }
    .base.base-3B {
        bottom: 36%;
        left: 33%;
    }

    .base.active {
        background-color: #ed1c24;
        box-shadow: 0 0 10px #ed1c24;
    }

    /* Estilos para la lista de jugadas estilo Listín viejo */
    #listaJugadas {
        max-height: 640px;
        overflow-y: auto; 
        background-color: #fff;
        border-radius: 5px;
    }
    #listaJugadas::-webkit-scrollbar { width: 6px; }
    #listaJugadas::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }

    .Jugline {
        display: flex;
        align-items: flex-start;
        border-bottom: 1px solid #eee; 
        gap: 0;
    }
    .Teamlog {
    width: 15%;
    float: left;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    padding: 7px;
}
    .Teamlog img {
        width: 80%;
        object-fit: contain;
    }
    .Teamline {
    width: 90%;
    float: left;
    height: 56px;
    padding: 10px 10px;
    text-align: left;
    background: #efefef;
    border-left: 3px solid #c1c1c1;
    display: flex;
    align-items: center;
    font-family: Roboto condensed;
}
    .Teamline p {
        margin: 0;
        font-size: 13px;
        color: #333;
        line-height: 1.4;
    }
    .Teamline b {
        font-weight: 700;
    }
    .team-tab-pane { display: none; }
    .team-tab-pane.active { display: block; }

    .team-tab-title {
        background-color: #ffcc00;
        color: #000;
        text-align: center;
        padding: 5px;
        font-weight: bold;
        font-size: 14px;
        border-bottom: 2px solid #ffcc00;
        margin-bottom: 5px;
    }

    /* Tablas dentro de las pestañas */
    .table-responsive-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    .live-stats-table {
        width: 100%;
        border-collapse: collapse;
        background-color: #fff;
        color: #333;
        font-size: 12px;
        white-space: nowrap;
    }
    .live-stats-table th {
        background-color: #444;
        color: #fff;
        padding: 6px;
        text-align: center;
        border: 1px solid #222;
    }
    .live-stats-table td {
        padding: 6px;
        text-align: center;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #eee;
    }
    .live-stats-table td:first-child {
        text-align: left;
        font-weight: bold;
    }
    .live-stats-table a {
        color: #000;
        text-decoration: none;
    }
    .live-stats-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    /* Pitcher y Bateador */
    .players-bottom {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        background-color: #222;
    }
    .player-card {
        text-align: center;
        width: 120px;
    color: white;
    }
    .player-title {
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        margin-bottom: 5px;
        text-transform: uppercase;
    }
    .player-avatar {
        width: 60px;
        height: 60px;
        background-color: #555;
        margin: 0 auto 5px auto;
        border: 1px solid #777;
        border-radius: 4px;
        object-fit: cover;
    }
    .player-stats {
        font-size: 11px;
        color: #fff;
    }
    .player-stats span.hoy { color: #ffcc00; font-weight: bold; }
 
    /* Ajuste para que los datos del score estén en una sola fila (Juegos no iniciados) */
    .score-info {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        font-size: 14px;
    }
    .score-info .score {
        font-weight: 800;
        font-size: 18px;
    }
    .score-info .record {
        font-size: 12px;
    color: #000000;
    font-weight: bold;
    }
/* Estilos para el efecto Hover de la foto */
    .player-photo-block {
        position: relative; 
        cursor: pointer;
    }
    .player-photo-block .team-logo-hover {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px; /* Tamaño del logo al hacer hover */
        height: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none; /* Evita que el logo interfiera con el mouse */
    }
    .player-photo-block:hover .player-img {
        opacity: 0.3; /* Desvanece la foto */
    }
    .player-photo-block:hover .team-logo-hover {
        opacity: 1; /* Muestra el logo */
    }
    /* Estilos para la tabla de posiciones */
    .standings-table { width: 100%; border-collapse: collapse; }
    .standings-table th { background: #f4f4f4; padding: 8px; font-size: 12px; text-transform: uppercase; border-bottom: 2px solid #ddd; text-align: center; }
    .standings-table td { padding: 8px; font-size: 13px; border-bottom: 1px solid #eee; text-align: center; vertical-align: middle; }
    .standings-table td:nth-child(2) { text-align: left; font-weight: bold; }
    .standings-table img { width: 25px; height: 25px; object-fit: contain; vertical-align: middle; }

    /* =======================================================
       ESTILOS PARA JUEGOS FINALIZADOS (Diseño Listin)
       ======================================================= */
    .game-card-finished {
        background: #fff;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 4px;
        overflow: hidden;
    }
    .game-header-bar {
        background-color: #ffcc00;
        color: #000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
    }
    .game-header-bar .status { flex-grow: 1; }
    .game-header-bar .headers { display: flex; gap: 38px; margin-right: 45px; font-size: 12px; }

    .game-team-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-bottom: 1px solid #eee;
    }
    .game-team-row:last-child { border-bottom: none; }
    
    .team-main-info { display: flex; align-items: center; gap: 15px; width: 60%; }
    .team-main-info img.team-logo { width: 40px; height: 40px; object-fit: contain; }
    .team-main-info .team-text { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: #000; }
    .team-main-info .team-arrow { width: 15px; margin-left: 5px; }

    .game-score-box {
        display: flex;
        gap: 25px;
        font-weight: 800;
        font-size: 18px;
        color: #000;
        padding-right: 25px;
    }
    .game-score-box span { width: 20px; text-align: center; }

    .game-footer-info {
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 8px 12px;
        font-size: 12px;
        color: #333;
    }
    .game-footer-info .info-row { display: flex; gap: 20px; margin-bottom: 5px; }
    .game-footer-info .info-row:last-child { margin-bottom: 0; }
    .game-footer-info .label { font-weight: 700; color: #f26522; }

    .game-action-btn { 
        padding: 10px;
        border-top: 1px solid #eee;
        background: #fff;
    }
    #rosterProfundo,#rosterBullpen{
        max-height: 600px;
    overflow: auto;
    }
    .homeruns div span{
        font-weight: bold;
    }
    .game-action-btn a {
        display: inline-block;
        color: #3d3d3d;
        padding: 6px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        font-weight: bold;
        border: 1px solid grey;
    }
    
    .game-action-btn a:hover { background-color: #ffcc00; } 
    /* Responsive */
    @media (max-width: 900px) {
        .main-game-body { flex-direction: column; }
        .left-col, .right-col { flex: 0 0 100%; border-left: none; }
        .right-col { border-top: 3px solid #ffcc00; }
        .score-table th, .score-table td { font-size: 11px; padding: 4px; }
        .team-box { width: 80px; }
    } 
.btn-error-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-dark);
    font-family: var(--font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}
 
   
.btn-error-outline:hover {
    border-color: var(--color-primary);
    background-color: rgba(255,193,7,0.1);
}
.btn-standings-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background-color: #ffc107;      /* naranja Listin */
        color: #000 !important;
        font-size: 13px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none !important;
        transition: all .2s ease;
        white-space: nowrap;
        box-shadow: 0 2px 4px rgba(0,0,0,.08);
    }
    .btn-standings-toggle:hover {
        background-color: #ffc107;      /* naranja más oscuro al hover */
        box-shadow: 0 3px 6px rgba(0,0,0,.12);
        transform: translateY(-1px);
    }
    .btn-standings-toggle:active {
        transform: translateY(0);
    }

    /* Móvil: que el botón no se desborde */
    @media (max-width: 767px) {
        .standings-subheader {
            justify-content: flex-start !important;
        }
        .btn-standings-toggle {
            font-size: 12px;
            padding: 6px 12px;
        }
    }
/* Ajustes responsive para la tarjeta de error */
@media (max-width: 768px) {
    .bTemporada{
        margin-top: 0;
    }
    .error-card {
        padding: 2rem 1.5rem;
    }
    .error-card h1 {
        font-size: 3.2rem;
    }
    .error-card h2 {
        font-size: 1.4rem;
    }
    .error-card p {
        max-width: 100%;
        font-size: 0.95rem;
    }
    .btn-error-primary, .btn-error-outline {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-error-primary, .btn-error-outline {
        text-align: center;
    }
}
/* Ajuste responsivo */
@media (max-width: 600px) {
    .stats-subtabs-row {
        flex-direction: column;
        align-items: stretch;
    }
    .stats-subsubtab-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .stats-subsubtab-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
}
/* --- Responsive --- */
@media (max-width: 900px) {
    .player-profile-header {
        grid-template-columns: 1fr;
    }

    .player-photo-block {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .player-photo-block img.player-img {
        width: 100px;
        height: 120px;
    }

    .player-info-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .player-name {
        font-size: 1.4rem;
    }

    .player-tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
    }
}
@media (max-width: 768px) {
    .team-leaders-grid { grid-template-columns: 1fr; }
    .player-profile-header { grid-template-columns: 1fr; }
    .team-profile-header { flex-direction: column; text-align: center; }
}
/* --- Responsive --- */
@media (max-width: 992px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    .team-card-logo {
        width: 60px;
        height: 60px;
    }
    .team-card-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* La columna de colectivos pasa a ocupar las 2 columnas debajo */
    .stats-col-collective {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-col-collective {
        grid-column: auto;
    }
    .stats-tab-btn {
        font-size: 0.85rem;
        padding: 0.7rem 0.5rem;
    }
    .stats-subtab-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }
    .stats-player-img {
        width: 55px;
    }
}
/* --- Responsive --- */
@media (max-width: 992px) {
    .standings-page {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .standings-full-table {
        font-size: 0.75rem;
    }
    .standings-full-table thead th {
        padding: 0.5rem 0.3rem;
        font-size: 0.65rem;
    }
    .standings-full-table tbody td {
        padding: 0.5rem 0.3rem;
    }
}
/* --- Media Queries --- */
@media (max-width: 1200px) {
    .content-with-skins { grid-template-columns: 1fr; }
    .ad-skin { display: none; }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "calhead"
            "games"
            "standings";
    }
    .footer-columns { grid-template-columns: 1fr; }
    .footer-links-grid { text-align: center; }
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    .brand { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 768px) {
    .logo-listin{
            height: 25px;
    }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0.5rem;
    }
    .navbar-nav.active { 
        display: flex; 
        padding: 20px 30px;}
    .navbar-toggle { display: block; }
    .page-title { font-size: 1.5rem; } 
    .ad-banner-top img, .ad-banner-bottom img { width: 100%; height: auto; }
}
/* =========================================
   RESPONSIVE ESPECÍFICO PARA EL SLIDER DE DÍAS
   ========================================= */

@media (max-width: 768px) {
     .scoreboard-container {
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos bajen de línea */
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
    }

    /* Los cuadros de los equipos se colocan arriba, uno al lado del otro */
    .team-box {
        width: calc(50% - 5px); /* Ocupan la mitad del ancho menos el gap */
        flex-direction: row; /* Logo y texto en fila */
        justify-content: center;
        padding: 10px;
        gap: 10px;
    }

    .team-box img {
        max-width: 40px;
        max-height: 40px;
    }

    .team-box span {
        font-size: 14px;
    }

    /* La tabla del marcador ocupa el 100% del ancho y va debajo */
    .score-table-wrapper {
        width: 100%;
        order: 3; /* Asegura que se coloque al final */
        margin-top: 5px;
        overflow-x: auto; /* Permite deslizar si la tabla es muy ancha */
    }

    /* Ajuste fino de la tabla para que no se aplaste */
    .score-table {
        min-width: 500px; /* Fuerza el scroll horizontal en pantallas muy pequeñas */
    }

    .score-table th, .score-table td {
        padding: 5px 3px;
        font-size: 11px;
    }

    /* Para que la barra de conteo (B/S/O) también se vea bien */
    .count-bar {
        flex-direction: row;
        justify-content: space-between;
        font-size: 12px;
    }
    
    .counts {
        gap: 8px;
    }
    /* El contenedor principal de navegación */
    .calendar-navigation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px; /* Espacio mínimo entre flechas y slider */
        width: 100%;
    }

    /* Contenedor de los días */
    .days-slider {
        display: flex;
        flex-wrap: nowrap;       /* No permitir que bajen de línea */
        overflow-x: auto;        /* Scroll horizontal */
        -webkit-overflow-scrolling: touch;
        gap: 2px;                /* Espacio entre días */
        flex-grow: 1;            /* Ocupa todo el espacio entre las flechas */
        scrollbar-width: none;   /* Ocultar barra de scroll en Firefox */
    }

    /* Ocultar barra de scroll en Chrome/Safari */
    .days-slider::-webkit-scrollbar {
        display: none;
    }

    /* Cada día individual */
    .day-item {
        /* FÓRMULA CLAVE: Toma el 100% del slider y lo divide en 5. 
           Restamos 2px para compensar el gap */
        flex: 0 0 calc((100% / 5) - 2px); 
        min-width: 0; /* Permite que el flex se ajuste correctamente */
        padding: 5px 0;
        text-align: center;
    }

    /* Ajuste de fuentes para que quepan */
    .day-item .day-name {
        font-size: 0.6rem;
    }
    
    .day-item .day-number {
        font-size: 0.85rem;
    }

    /* Botones de las flechas */
    .btn-nav {
        flex-shrink: 0; /* Evita que las flechas se encojan */
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }
}