.wclh-teams-page,
.wclh-team-detail-route-main,
.wclh-team-detail-page {
    width: 100%;
    max-width: 1440px !important;
    margin: 0 auto;
    box-sizing: border-box;
    color: #071426;
    padding: 40px 20px 60px;
}

.wclh-teams-page *,
.wclh-teams-page *::before,
.wclh-teams-page *::after,
.wclh-team-detail-page *,
.wclh-team-detail-page *::before,
.wclh-team-detail-page *::after {
    box-sizing: border-box;
}

.wclh-teams-header {
    margin-bottom: 28px;
}

.wclh-teams-title {
    margin: 0;
    color: #071426;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 1000;
}

.wclh-teams-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}

.wclh-teams-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.wclh-team-card-link,
.wclh-team-match-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
    scroll-snap-align: start;
}

.wclh-team-card-link:hover,
.wclh-team-card-link:focus,
.wclh-team-match-card-link:hover,
.wclh-team-match-card-link:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

.wclh-team-card {
    min-height: 260px;
    border-radius: 20px;
    background: var(--wclh-card-bg, #0b2d4d);
    color: var(--wclh-card-text, #fff);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wclh-team-card-link:hover .wclh-team-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.wclh-team-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.wclh-team-card-flag-wrap {
    width: 96px;
    height: 66px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wclh-team-card-code,
.wclh-team-detail-code {
    display: inline-flex;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    font-size: 12px;
    font-weight: 1000;
}

.wclh-team-card-hero {
    padding: 18px 20px 30px;
}

.wclh-team-card-name {
    margin: 0;
    color: inherit;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 1000;
}

.wclh-team-card-body {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
}

.wclh-team-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 22px;
    font-weight: 900;
}

.wclh-team-detail-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: #0d6efd;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none !important;
}

.wclh-team-detail-back:hover {
    text-decoration: underline !important;
}

.wclh-team-detail-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    min-height: 230px;
    border-radius: 22px;
    padding: 34px;
    color: var(--wclh-card-text, #fff);
    background: var(--wclh-card-bg, #0b2d4d);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.wclh-team-detail-flag {
    width: 150px;
    height: 100px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wclh-team-detail-flag .wclh-team-flag,
.wclh-team-detail-flag .wclh-team-flag-placeholder {
    width: 100%;
    height: 100%;
}

.wclh-team-detail-main h1 {
    margin: 18px 0 8px;
    color: inherit;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 1000;
}

.wclh-team-detail-main p {
    margin: 0;
    color: inherit;
    opacity: 0.85;
    font-size: 16px;
    font-weight: 900;
}

.wclh-team-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.wclh-team-detail-summary > div {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.wclh-team-detail-summary span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.wclh-team-detail-summary strong {
    display: block;
    color: #071426;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 1000;
}

.wclh-team-detail-description,
.wclh-team-detail-matches,
.wclh-team-detail-players {
    margin-top: 32px;
}

.wclh-team-detail-description {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.wclh-team-detail-description h2,
.wclh-team-detail-section-head h2 {
    margin: 0;
    color: #071426;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 1000;
}

.wclh-team-detail-description p {
    margin: 14px 0 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 700;
}

.wclh-team-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wclh-team-detail-section-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #cfe7ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 1000;
}

.wclh-team-match-nav {
    display: inline-flex;
    gap: 10px;
}

.wclh-team-match-arrow {
    width: 48px !important;
    height: 48px !important;
    border-radius: 100% !important;
    border: 1px solid #e0245e;
    background: #fff;
    color: #e0245e;
    font-size: 30px !important;
    line-height: 1;
    cursor: pointer;
    line-height: 0;
    padding: 10px 10px 16px !important;
}

.wclh-team-match-arrow:hover {
    background: #e0245e;
    color: #fff;
}

.wclh-team-match-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(330px, 380px);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 14px;
}

.wclh-team-match-card {
    height: 100%;
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wclh-team-match-card-link:hover .wclh-team-match-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
}

.wclh-team-match-topline,
.wclh-team-match-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 18px;
    font-weight: 900;
}

.wclh-team-match-topline strong {
    color: #e63946;
}

.wclh-team-match-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 22px 0;
}

.wclh-team-match-side {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    min-width: 0;
}

.wclh-team-match-side span {
    color: #071426;
    font-size: 20px;
    font-weight: 1000;
}

.wclh-team-match-score {
    color: #071426;
    font-size: 24px;
    line-height: 1;
    font-weight: 1000;
    text-align: center;
    white-space: nowrap;
}

.wclh-team-match-score small {
    display: block;
    margin-top: 6px;
    color: #e63946;
    font-size: 12px;
    font-weight: 1000;
}

.wclh-team-position-list {
    display: grid;
    gap: 28px;
}

.wclh-team-position-section {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.wclh-team-position-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}

.wclh-team-position-heading h3 {
    margin: 0;
    color: #071426;
    font-size: 24px;
    font-weight: 1000;
}

.wclh-team-position-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #334155;
    font-size: 12px;
    font-weight: 1000;
}

.wclh-team-player-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wclh-team-player-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    padding: 14px;
}

.wclh-team-player-photo {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    overflow: hidden;
    background: #eaf1f8;
}

.wclh-team-player-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wclh-team-player-photo-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #071426;
    font-size: 15px;
    font-weight: 1000;
}

.wclh-team-player-info {
    min-width: 0;
}

.wclh-team-player-info h4 {
    margin: 0;
    color: #071426;
    font-size: 24px;
    font-weight: 1000;
    line-height: 1.25;
}

.wclh-team-player-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.wclh-team-player-info p span {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff3cd;
    color: #7c5800;
    font-size: 11px;
    font-weight: 1000;
}

.wclh-team-player-number {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #071a2f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 1000;
}

.wclh-team-detail-empty,
.wclh-teams-empty {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    padding: 18px;
    color: #334155;
    font-weight: 800;
}

/* Team detail match time: Bangladesh style + late-night note */
.wclh-team-match-score {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.wclh-team-match-score-text,
.wclh-team-match-time-text {
    display: block;
    color: #071426;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 900;
    white-space: nowrap;
}

.wclh-team-match-late-night-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8db;
    color: #7c5800;
    border: 1px solid #ffd66b;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .wclh-team-match-score-text,
    .wclh-team-match-time-text {
        font-size: 22px;
    }

    .wclh-team-match-late-night-note {
        white-space: normal;
        text-align: center;
        font-size: 11px;
    }
}

@media (max-width: 1100px) {
    .wclh-teams-grid,
    .wclh-team-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wclh-team-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .wclh-teams-page,
    .wclh-team-detail-route-main,
    .wclh-team-detail-page {
        padding: 30px 14px 48px;
    }

    .wclh-teams-grid,
    .wclh-team-player-grid,
    .wclh-team-detail-summary {
        grid-template-columns: 1fr;
    }

    .wclh-team-detail-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .wclh-team-detail-main h1 {
        font-size: 40px;
    }

    .wclh-team-detail-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .wclh-team-match-slider {
        grid-auto-columns: minmax(280px, 88vw);
    }
}

/* =====================================================
   Team Details Player Default Position Icons
   Shows default PNG when player photo is not uploaded
   ===================================================== */

.wclh-team-player-photo {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    overflow: hidden;
    background: #eaf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wclh-team-player-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wclh-team-player-photo-icon {
    object-fit: contain !important;
    padding: 8px;
    background: #eef6ff;
}

.wclh-team-player-photo-icon-goalkeeper {
    background: #eaf1ff;
}

.wclh-team-player-photo-icon-defender {
    background: #f1f5f9;
}

.wclh-team-player-photo-icon-midfielder {
    background: #e8fff7;
}

.wclh-team-player-photo-icon-forward {
    background: #fff3e8;
}

.wclh-team-player-photo-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #071426;
    font-size: 15px;
    font-weight: 1000;
}