body,
html {
    height: 100%;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.competition-nav {
    display: flex;
    width: 100%;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 0.75rem 0; 
    list-style: none;
    margin: 0 auto;
    overflow-x: clip; 
    justify-content: flex-start;
    min-height: 4rem; 
    box-sizing: border-box;
}

.competition-nav li {
    margin: 0;
    padding: 0 0.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
}

.competition-nav a {
    position: relative;
    z-index: 1;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-radius: 50px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.competition-nav a.active {
    color: #fff;
}

.competition-nav a.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #00bfff 0%, #ff004c 100%);
    border-radius: inherit;
    z-index: -1;
}

.classification-header {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2d73;
    margin-bottom: 0.5rem;
    text-align: left;
}
.division-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #777;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}


.table-responsive {
    overflow-x: auto;
}
.classification-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.classification-table thead th {
    text-align: left;
    padding: 1.5rem 1rem;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}
.classification-table tbody tr.even {
    background: #fafafa;
}
.classification-table tbody tr.odd {
    background: #fff;
}
.classification-table tbody tr:hover {
    background: rgba(31, 45, 115, 0.05);
}
.classification-table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    color: #333;
}
.classification-table td img {
    width: 40px !important;
    height: 40px !important;
}
.team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.team-crest {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.list-group-item {
    background: #f1f3f5;
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 100px;
}

.list-group-item .match-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; 
}

.list-group-item .match-teams {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.list-group-item .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.list-group-item .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.list-group-item .team-name {
    font-size: 0.9em;
    white-space: nowrap;
    margin-top: 0.25rem;
}

.list-group-item .match-result {
    font-weight: bold;
    font-size: 1.5rem;
    min-width: 50px;
    text-align: center;
}


.list-group-item {
    background: #f1f3f5;
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}
.list-group-item:hover {
    background: #e9ecef;
}

.team-match-display {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 0.5rem; 
    text-align: center;
}

.match-crest {
    width: 60px; 
    height: 60px;
    object-fit: contain; 
}

.team-name {
    font-size: 0.9em; 
    white-space: nowrap; 
}
.tarjeta-partido {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f1f3f5;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    text-decoration: none; 
    box-sizing: border-box;
}

.tarjeta-partido:hover {
    background-color: #e9ecef;
}

.tarjeta-partido .match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarjeta-partido .match-teams {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    gap: 3rem;
    flex: 1;
}

.tarjeta-partido .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 1 120px; 
    min-width: 80px;
}

.tarjeta-partido .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tarjeta-partido .team-name {
    font-size: 0.9em;
    white-space: nowrap;
    margin-top: 0.25rem;
    text-align: center;
}

.tarjeta-partido .match-result {
    font-weight: bold;
    font-size: 1.5rem;
    min-width: 50px;
    text-align: center;
}
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: hidden;
  }

  .classification-table thead {
    display: none;
  }

  .classification-table,
  .classification-table tbody,
  .classification-table tr,
  .classification-table td {
    display: block;
    width: 100%;
  }

  .classification-table tr {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
  }

  .classification-table td {
    padding: 0.5rem 0;
    position: relative;
    border: none;
    border-bottom: 1px solid #dee2e6;
    white-space: normal;
    text-align: right;
  }
  .classification-table td:last-child {
    border-bottom: none;
  }

  .classification-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    width: 50%;
    text-align: left;
  }

  @media (max-width: 576px) {
    .classification-table tr {
      padding: 0.5rem;
    }
    .classification-table td {
      padding: 0.3rem 0;
    }
  }
}


@media (max-width: 575.98px) {
    .classification-table {
        min-width: 0;
    }
    .classification-table thead {
        display: none;
    }
    .classification-table tr {
        display: block;
        margin-bottom: 1.25rem;
        border-radius: 0.75rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        background: #fff;
    }
    .classification-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem;
        position: relative;
    }
    .classification-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }
    .competition-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .competition-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .competition-nav a.active::before {
        top: -3px; 
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .team-match-display {
        flex-direction: row; 
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .match-crest {
        width: 45px;
        height: 45px;
    }
}

.classification-header {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2d73;
  margin-bottom: 1rem;
}
.division-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 1rem;
}


.table-responsive {
  overflow-x: hidden;
}
.classification-table {
  width: 100%;
  border-collapse: collapse;
}
.classification-table thead th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}
.classification-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.classification-table tbody tr:hover {
  background: rgba(31,45,115,0.05);
}
.classification-table td {
  padding: 1rem;
  vertical-align: middle;
  color: #333;
}
.team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.team-crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
}


@media (max-width: 768px) {

  .classification-table thead {
    display: none;
  }

  .classification-table,
  .classification-table tbody,
  .classification-table tr,
  .classification-table td {
    display: block;
    width: 100%;
  }

  .classification-table tr {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
  }

  .classification-table td {
    position: relative;
    padding-left: 50%;
    text-align: right;
    border: none;
    border-bottom: 1px solid #eee;
    white-space: normal;
  }
  .classification-table td:last-child {
    border-bottom: none;
  }

  .classification-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: 45%;
    text-align: left;
  }

  .classification-table td {
    font-size: 0.9rem;
  }
}
