:root {
    --primary-color: #000000;
    --accent-color: #d32f2f;
    --accent-red: #ef4444;
    /* Baseball red */
    --bg-color: #ffffff;
    --section-bg: #f9f9f9;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --container-width: 1200px;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #ff4d4d; /* Red accent for baseball */
    --accent-blue: #4d94ff;
    --success: #00e676;
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-panel: rgba(30, 30, 30, 0.8);

    --gap: 16px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.badge.live {
    background: var(--accent-red);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    float: right;
}


/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-display {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo img {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-highlight {
    color: var(--accent-color);
}

/* Nav */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 150px;
}

.search-bar button {
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    text-transform: uppercase;
    float: left;
}

/* Games Section */
.games-section {
    grid-column: span 4;
}

.games-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.game-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card.live-game {
    border-left: 3px solid var(--accent-red);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.team-score {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.game-info {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.league {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* Standings Section */
.standings-section {
    grid-column: span 8;
}

/* Page full */
.page_full {
    grid-column: span 12;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.standings-table th,
.standings-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    text-align: center;
    color: #888;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.standings-table td:first-child {
    text-align: left;
    font-weight: 600;
}


.standings-table-bus {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.standings-table-bus th,
.standings-table-bus td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table-bus th {
    text-align: center;
    color: #888;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.standings-table-bus td:first-child {
    text-align: left;
    font-weight: 600;
}

/* Leaders Section */
.leaders-section-wrapper {
    grid-column: span 12;
    margin-top: 20px;
}

.leaders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.leaders-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.leaders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.leaders-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.leader td {
    color: var(--accent-color);
    font-weight: 600;
}

.rank {
    display: inline-block;
    width: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tabs {
    display: flex;
    gap: 5px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tab-btn.active {
    background: var(--accent-color);
    color: #fff;
}

.tab-btnp {
    border: none;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tab-btnp.active {
    background: var(--accent-color);
    color: #fff;
}

.leaders-list {
    list-style: none;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-rank {
    width: 20px;
    color: #aaa;
    font-weight: 500;
}

.leader-name {
    flex-grow: 1;
    font-weight: 600;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}

.leader-name .name {
    font-weight: 600;
}

.leader-name .team-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.leader-stat {
    font-weight: 700;
    color: var(--accent-color);
}

.pitching-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pitching-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    color: #fff;
    margin-bottom: 10px;
}

.site-footer p {
    color: #666;
    font-size: 0.85rem;
}

.league-select {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-family: inherit;
        float: right;
}

.bigdrop{ width:300px !important; }

/* Responsive */
@media (max-width: 900px) {
    .games-section {
        grid-column: span 12;
    }

    .standings-section {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {

    .container-header,
    .container-nav {
        flex-direction: column;
        gap: 15px;
    }

    .date-display {
        order: 2;
    }

    .logo {
        order: 1;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
  .standings-table-bus table,
  .standings-table-bus thead,
  .standings-table-bus th,
  .standings-table-bus td,
  .standings-table-bus tbody,
  .standings-table-bus tr {
    display: block;
  }

  .standings-table-bus thead tr {
    display: none; /* ocultar encabezado */
  }

  .standings-table-bus tbody tr {
    border: 1px solid #ccc;   /* borde alrededor de cada fila */
    margin-bottom: 10px;       /* separación entre filas */
    border-radius: 10px;       /* opcional: esquinas redondeadas */
    padding: 5px;
    overflow: hidden;         /* asegura que los bordes se vean bien */
  }

  .standings-table-bus td {
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  .standings-table-bus td:last-child {
    border-bottom: none; /* quitar borde al último td */
  }

  .standings-table-bus td::before {
    content: attr(data-label); /* usar atributo como encabezado */
    position: absolute;
    left: 0;
    width: 45%;
    font-weight: bold;
    white-space: nowrap;
  }
  .table-responsive { margin-top: 40px; }
  .bigdrop{ width:230px !important; }
}



