/* ============================
   HERO TEXT FIX
============================ */
.hero .page-title,
.hero .subtitle {
    color: white !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* ============================
   LEAGUE BANNER
============================ */
.league-banner {
    width: 100%;
    background: #0d0d0d;
    border: 2px solid #4b0082;
    border-radius: 14px;
    padding: 18px 0;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 0 18px rgba(75, 0, 130, 0.55);
}

.league-banner span {
    font-size: 30px;
    font-weight: 900;
    color: #c58cff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(75, 0, 130, 0.6);
}

/* ============================
   TABLE WRAPPER
============================ */
.league-wrapper {
    width: 100%;
}

/* ============================
   TABLE BASE
============================ */
#league-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin-bottom: 25px;
    border-radius: 10px;
}

#league-table thead th {
    background-color: black;
    color: white;
    padding: 6px 4px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid white;
    height: 32px;
    font-size: 14px;
}

#league-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

#league-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.12);
}

#league-table th,
#league-table td {
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    padding: 8px 6px;
    color: white;
    text-align: center;
}

/* ============================
   TEAM COLUMN
============================ */
#league-table th.col-team,
#league-table td.col-team {
    text-align: left;
    padding-left: 10px;
    min-width: 180px;
}

.team-logo {
    height: 18px;
    width: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================
   FORM DOTS
============================ */
.form-track {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.form-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.form-win { background-color: #00c853; }
.form-draw { background-color: #9e9e9e; }
.form-loss { background-color: #d50000; }

/* ============================
   UCL / UEL / REL STRIPES
============================ */
#league-table tr td:first-child {
    position: relative;
}

.ucl td:first-child::before,
.uel td:first-child::before,
.rel td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.ucl td:first-child::before { background-color: #00b2ff; }
.uel td:first-child::before { background-color: #ff7f00; }
.rel td:first-child::before { background-color: #ff4b4b; }

/* ============================
   KEY
============================ */
.league-key {
    margin-top: 12px;
    color: white;
    font-size: 13px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-tab {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.key-ucl { background-color: #00b2ff; }
.key-uel { background-color: #ff7f00; }
.key-rel { background-color: #ff4b4b; }

/* ============================
   RESPONSIVE COLLAPSE SYSTEM
============================ */

/* 1️⃣ Remove FORM first */
@media (max-width: 1200px) {
    #league-table th.col-form,
    #league-table td.col-form {
        display: none;
    }
}

/* 2️⃣ Remove W / D / L */
@media (max-width: 1000px) {
    #league-table th.col-w,
    #league-table td.col-w,
    #league-table th.col-d,
    #league-table td.col-d,
    #league-table th.col-l,
    #league-table td.col-l {
        display: none;
    }
}

/* 3️⃣ Remove GF / GA */
@media (max-width: 850px) {
    #league-table th.col-gf,
    #league-table td.col-gf,
    #league-table th.col-ga,
    #league-table td.col-ga {
        display: none;
    }
}

/* 4️⃣ Final compact version (Pos, Team, Pl, GD, Pts) */
@media (max-width: 650px) {

    #league-table th:not(.col-pos):not(.col-team):not(.col-pl):not(.col-gd):not(.col-pts),
    #league-table td:not(.col-pos):not(.col-team):not(.col-pl):not(.col-gd):not(.col-pts) {
        display: none;
    }

    #league-table {
        font-size: 12px;
    }

    #league-table th,
    #league-table td {
        padding: 4px 3px;
        white-space: nowrap;
    }

    #league-table th.col-team,
    #league-table td.col-team {
        min-width: 140px;
    }

    .team-logo {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}
