.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stats-column {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-column h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.team-hero-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.team-card {
    flex: 1 1 260px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    min-width: 0;
}

.team-main-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 340px;
}

.team-main-content {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.team-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
}

.team-header .team-logo {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.team-main-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-title {
    font-size: 1.8rem;
    line-height: 1.15;
    color: beige;
    margin: 0;
}

.team-header .team-title {
    font-size: 2.5em;
    text-align: center;
}

.team-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #dcdcdc;
    font-size: 0.9rem;
}

.team-card-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.team-social-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 0 1 200px;
}

.team-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 540px) {
    .team-main-card {
        flex: 1 1 100%;
    }
    .team-main-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .team-main-text {
        align-items: center;
        text-align: center;
    }
    .team-title {
        font-size: 1.6rem;
    }
    .team-social-card {
        flex: 1 1 140px;
    }
}

.team-socials.empty {
    color: #b3b3b3;
}

.team-social-link {
    margin: 0 6px 5px 0;
}

.team-stadium-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.team-stadium-line {
    display: flex;
    gap: 6px;
    color: #e8e8e8;
    font-size: 0.95rem;
}

.team-stadium-line .label {
    color: #c9c9c9;
    min-width: 72px;
}

@media (max-width: 720px) {
    .team-title {
        font-size: 1.6rem;
    }
    .team-main-card {
        width: 100%;
    }
}

.chart-container {
    display: flex;
    justify-content: center;
}

.points-title {
    color: beige;
    justify-content: center;
    display: flex;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: beige;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
}

.grey-header {
    background-color: darkslategrey;
    font-weight: bold;
    color: beige;
}

tr.header-row {
    background: darkslategrey;
}

.league-context {
    margin: 30px 0;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    color: beige;
}

.standings-table th,
.standings-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.current-team {
    background-color: darkgrey;
    font-weight: bold;
    color: black;
}

.league-position {
    color: beige;
    text-align: center;
}

.upcoming-matches,
.last-matches {
    margin: 30px 0;
    width: 100%;
}

.upcoming-matches-title,
.last-matches-title {
    color: beige;
    text-align: center;
    margin-bottom: 20px;
}

.matches-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.match-card {
    display: grid;
    grid-template-columns: 0.8fr 2.4fr 0.8fr;
    padding: 15px;
    border-radius: 8px;
    color: beige;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
}

.match-card.w {
    border-left: 5px solid #4CAF50;
}

.match-card.d {
    border-left: 5px solid #FFC107;
}

.match-card.l {
    border-left: 5px solid #f44336;
}

.match-date {
    font-size: 0.9em;
    opacity: 0.8;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.team {
    width: 100%;
    font-size: 0.95em;
}

.team:first-child {
    text-align: right;
}

.team:last-child {
    text-align: left;
}

.score {
    font-weight: bold;
    padding: 0 15px;
    white-space: nowrap;
}

.match-result {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}

.home-team,
.away-team {
    font-weight: bold;
    color: #4CAF50;
}

.season-selector {
    margin: 20px 0;
    text-align: center;
}

.season-selector select {
    padding: 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.season-selector button {
    padding: 8px 16px;
    background-color: #587e6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.current-season {
    text-align: center;
    color: beige;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .match-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .match-date {
        text-align: center;
    }

    .match-result {
        text-align: center;
    }

    .team {
        font-size: 0.9em;
    }
    
    .team-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .matches-container {
        padding: 0 10px;
    }

    .match-teams {
        gap: 5px;
    }

    .score {
        padding: 0 10px;
    }
}

.breadcrumb-navigation {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    margin-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: inline-block;
    color: #ccc;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #666;
}

.breadcrumb a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .active {
    color: #4CAF50;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .breadcrumb li:not(:last-child)::after {
        margin: 0 5px;
    }
}

.team-link {
    color: beige;
    padding-left: 10px;
    text-decoration: none;
}

/* --- isolate the new team matches section --- */
.team-matches-section {
  all: initial;
  all: revert; /* resets inherited browser defaults but keeps variables */
  display: block;
}
