

/* Team Analysis - keep dynamic stat text above all old layers */
html body .team-analysis.ta-enhanced > a .ta-live-stats {
    z-index: 100 !important;
}

html body .team-analysis.ta-enhanced > a .ta-live-stat,
html body .team-analysis.ta-enhanced > a:first-of-type .ta-live-stat,
html body .team-analysis.ta-enhanced > a:nth-of-type(1) .ta-live-stat {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .34) !important;
    z-index: 101 !important;
}

/* Teams page - premium dashboard */
html body .template-wrap.page-team {
    width: min(1310px, calc(100vw - 28px)) !important;
    max-width: 1310px !important;
    margin: 24px auto 34px !important;
    padding: 22px !important;
    display: grid !important;
    grid-template-columns: minmax(360px, .88fr) minmax(360px, 1.12fr) !important;
    gap: 18px !important;
    overflow: visible !important;
    color: #f6fbff !important;
    background:
        radial-gradient(circle at 20% 10%, rgba(43, 168, 245, .16), transparent 34%),
        radial-gradient(circle at 92% 4%, rgba(36, 115, 205, .13), transparent 30%),
        linear-gradient(145deg, rgba(5, 24, 44, .96), rgba(5, 17, 31, .98)) !important;
    border: 1px solid rgba(76, 180, 255, .28) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body .template-wrap.page-team *,
html body .template-wrap.page-team *::before,
html body .template-wrap.page-team *::after {
    box-sizing: border-box !important;
}

html body .template-wrap.page-team > h1,
html body .template-wrap.page-team > h2,
html body .template-wrap.page-team > h3,
html body .template-wrap.page-team .summary > h3 {
    display: none !important;
}

html body .template-wrap.page-team .team-header.fake-table {
    position: relative !important;
    grid-column: 1 / 2 !important;
    min-height: 238px !important;
    padding: 24px !important;
    display: grid !important;
    grid-template-columns: 174px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 24px !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(11, 59, 94, .82), rgba(4, 18, 33, .92) 58%),
        radial-gradient(circle at 24% 42%, rgba(40, 178, 255, .20), transparent 38%) !important;
    border: 1px solid rgba(70, 179, 255, .42) !important;
    border-top: 4px solid #26aefe !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team .team-header.fake-table::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 34%, rgba(255, 255, 255, .03)) !important;
    opacity: .72 !important;
}

html body .template-wrap.page-team .team-header .logo.team-detail {
    position: relative !important;
    z-index: 1 !important;
    width: 174px !important;
    height: 174px !important;
    margin: 0 !important;
    padding: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        radial-gradient(circle at 50% 36%, #ffffff, #f3f8ff 58%, #dceaf7) !important;
    border: 1px solid rgba(86, 190, 255, .58) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72) !important;
}

html body .template-wrap.page-team .team-header .logo.team-detail img {
    width: 100% !important;
    height: 100% !important;
    max-width: 136px !important;
    max-height: 136px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .20)) !important;
}

html body .template-wrap.page-team .team-header .team-name.fake-cell {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team .team-title {
    margin: 0 !important;
    max-width: 100% !important;
    color: #ffffff !important;
    font-size: clamp(30px, 3vw, 46px) !important;
    line-height: 1.02 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .30) !important;
}

html body .template-wrap.page-team > .team-header + div:not(.selection-scroll):not(.summary) {
    grid-column: 2 / 3 !important;
    min-height: 238px !important;
    padding: 24px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    overflow: hidden !important;
    color: rgba(230, 241, 252, .92) !important;
    font-size: 15px !important;
    line-height: 1.68 !important;
    background:
        linear-gradient(135deg, rgba(7, 34, 59, .86), rgba(5, 19, 34, .94)),
        radial-gradient(circle at 88% 18%, rgba(78, 170, 255, .14), transparent 34%) !important;
    border: 1px solid rgba(75, 169, 239, .28) !important;
    border-top: 4px solid rgba(37, 172, 255, .86) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team > .team-header + div:not(.selection-scroll):not(.summary) h2 {
    display: block !important;
    margin: 0 0 4px !important;
    color: #42b9ff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

html body .template-wrap.page-team > .selection-scroll {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team #teamnavigation.generic-list-menu {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(9, 35, 61, .80), rgba(5, 20, 36, .94)) !important;
    border: 1px solid rgba(78, 171, 245, .26) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team #teamnavigation .menuoption {
    position: relative !important;
    min-width: 138px !important;
    height: 42px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(232, 241, 251, .86) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease !important;
}

html body .template-wrap.page-team #teamnavigation .menuoption:hover,
html body .template-wrap.page-team #teamnavigation .menuoption.currentoption {
    color: #ffffff !important;
    background:
        linear-gradient(180deg, rgba(52, 168, 244, .34), rgba(20, 93, 154, .34)) !important;
    border-color: rgba(61, 184, 255, .68) !important;
}

html body .template-wrap.page-team #teamnavigation .menuoption.currentoption::after {
    content: "" !important;
    position: absolute !important;
    left: 22px !important;
    right: 22px !important;
    bottom: -9px !important;
    height: 2px !important;
    background: #25b6ff !important;
    border-radius: 99px !important;
}

html body .template-wrap.page-team > .summary {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team .dblock,
html body .template-wrap.page-team .team-last5,
html body .template-wrap.page-team .team-leaders,
html body .template-wrap.page-team .team-players,
html body .template-wrap.page-team .team-standings {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow: hidden !important;
    background:
        linear-gradient(145deg, rgba(8, 36, 62, .86), rgba(4, 18, 33, .94)) !important;
    border: 1px solid rgba(76, 169, 239, .26) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team .dblock > h4,
html body .template-wrap.page-team .team-leaders-detail > h4 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

html body .template-wrap.page-team .team-leaders {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

html body .template-wrap.page-team .team-leaders::before {
    content: "Team Leaders" !important;
    grid-column: 1 / -1 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

html body .template-wrap.page-team .team-leaders-detail {
    min-width: 0 !important;
    padding: 14px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(14, 52, 84, .74), rgba(6, 24, 42, .88)) !important;
    border: 1px solid rgba(80, 174, 246, .24) !important;
    border-radius: 8px !important;
}

html body .template-wrap.page-team .team-leaders-detail > h4 {
    margin-bottom: 10px !important;
    color: #35b8ff !important;
    font-size: 12px !important;
}

html body .template-wrap.page-team .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team table.tableClass {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .template-wrap.page-team table.tableClass thead th {
    height: 40px !important;
    padding: 10px 12px !important;
    color: #8fc8ef !important;
    background: rgba(2, 16, 29, .74) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(91, 169, 228, .20) !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team table.tableClass tbody td {
    height: 42px !important;
    padding: 9px 12px !important;
    color: rgba(243, 249, 255, .94) !important;
    background: rgba(9, 31, 53, .46) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(116, 177, 221, .13) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    vertical-align: middle !important;
}

html body .template-wrap.page-team table.tableClass tbody tr:nth-child(even) td {
    background: rgba(12, 42, 70, .42) !important;
}

html body .template-wrap.page-team table.tableClass tbody tr:hover td {
    background: rgba(33, 116, 181, .24) !important;
}

html body .template-wrap.page-team table.tableClass a {
    color: #cfeeff !important;
    text-decoration: none !important;
}

html body .template-wrap.page-team table.tableClass a:hover {
    color: #ffffff !important;
}

html body .template-wrap.page-team .team-last5 .matchOpponent {
    min-width: 0 !important;
    color: rgba(241, 247, 255, .92) !important;
}

html body .template-wrap.page-team .team-last5 .matchOpponent img,
html body .template-wrap.page-team .team-standings td.team-logo img,
html body .template-wrap.page-team .team-standings .team-logo img {
    width: 32px !important;
    height: 32px !important;
    margin: 0 10px 0 0 !important;
    padding: 4px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
    border-radius: 999px !important;
}

html body .template-wrap.page-team .matchResult {
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 900 !important;
}

html body .template-wrap.page-team .matchResult .W,
html body .template-wrap.page-team .matchResult .L {
    min-width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

html body .template-wrap.page-team .matchResult .W {
    background: rgba(36, 191, 111, .82) !important;
}

html body .template-wrap.page-team .matchResult .L {
    background: rgba(248, 68, 103, .82) !important;
}

html body .template-wrap.page-team .ld-index {
    width: 34px !important;
    min-width: 34px !important;
    color: rgba(155, 197, 225, .90) !important;
    text-align: center !important;
}

html body .template-wrap.page-team .ld-person {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html body .template-wrap.page-team .playerphoto {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 999px !important;
}

html body .template-wrap.page-team .playerphoto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

html body .template-wrap.page-team .ld-person a {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .ld-value {
    width: 72px !important;
    min-width: 62px !important;
    color: #ffffff !important;
    text-align: right !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-players,
html body .template-wrap.page-team .team-standings {
    min-height: 0 !important;
}

html body .template-wrap.page-team .team-players table.team-players-table th:first-child,
html body .template-wrap.page-team .team-players table.team-players-table td:first-child {
    min-width: 190px !important;
    text-align: left !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th.team-logo,
html body .template-wrap.page-team .team-standings table.team-standings-table td.team-logo {
    width: 48px !important;
    min-width: 48px !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th.team-name,
html body .template-wrap.page-team .team-standings table.team-standings-table td.team-name {
    min-width: 170px !important;
    text-align: left !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table td.team-name a {
    color: #ffffff !important;
    font-weight: 900 !important;
}

html body .template-wrap.page-team .fooicon {
    opacity: .48 !important;
    color: #59c5ff !important;
}

@media (max-width: 1100px) {
    html body .template-wrap.page-team {
        grid-template-columns: 1fr !important;
    }

    html body .template-wrap.page-team .team-header.fake-table,
    html body .template-wrap.page-team > .team-header + div:not(.selection-scroll):not(.summary),
    html body .template-wrap.page-team > .selection-scroll,
    html body .template-wrap.page-team > .summary {
        grid-column: 1 / -1 !important;
    }

    html body .template-wrap.page-team > .summary,
    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    html body .template-wrap.page-team {
        width: calc(100vw - 16px) !important;
        padding: 14px !important;
        gap: 14px !important;
    }

    html body .template-wrap.page-team .team-header.fake-table {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
    }

    html body .template-wrap.page-team .team-title {
        font-size: 30px !important;
    }

    html body .template-wrap.page-team #teamnavigation.generic-list-menu {
        justify-content: flex-start !important;
        overflow-x: auto !important;
    }

    html body .template-wrap.page-team #teamnavigation .menuoption {
        min-width: 124px !important;
    }
}

/* Teams page - layout tightening */
html body .template-wrap.page-team > .team-header + div:not(.selection-scroll):not(.summary) {
    display: none !important;
}

html body .template-wrap.page-team .team-header.fake-table {
    grid-column: 1 / -1 !important;
    min-height: 172px !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 22px 30px !important;
    align-items: center !important;
}

html body .template-wrap.page-team .team-header .logo.team-detail {
    width: 132px !important;
    height: 132px !important;
    padding: 14px !important;
    border-radius: 14px !important;
}

html body .template-wrap.page-team .team-header .logo.team-detail img {
    max-width: 104px !important;
    max-height: 104px !important;
}

html body .template-wrap.page-team .team-title {
    font-size: clamp(34px, 3.4vw, 54px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team > .summary {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: start !important;
}

html body .template-wrap.page-team .team-last5 {
    grid-column: 1 / span 5 !important;
}

html body .template-wrap.page-team .team-leaders {
    grid-column: 6 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body .template-wrap.page-team .team-players {
    grid-column: 1 / span 7 !important;
}

html body .template-wrap.page-team .team-standings {
    grid-column: 8 / -1 !important;
}

html body .template-wrap.page-team .team-leaders-detail {
    min-height: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass {
    table-layout: fixed !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody td {
    height: 38px !important;
    padding: 7px 8px !important;
}

html body .template-wrap.page-team .ld-person {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    vertical-align: middle !important;
}

html body .template-wrap.page-team .ld-person .playerphoto {
    display: inline-flex !important;
    margin-right: 9px !important;
    vertical-align: middle !important;
}

html body .template-wrap.page-team .ld-person a {
    display: inline-block !important;
    max-width: calc(100% - 48px) !important;
    vertical-align: middle !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-index {
    width: 30px !important;
    min-width: 30px !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-value {
    width: 68px !important;
    min-width: 58px !important;
}

html body .template-wrap.page-team .team-last5 table.tableClass {
    table-layout: fixed !important;
}

html body .template-wrap.page-team .team-last5 .matchTime {
    width: 100px !important;
}

html body .template-wrap.page-team .team-last5 .matchResult {
    width: 122px !important;
}

html body .template-wrap.page-team .team-last5 .matchOpponent {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-players table.team-players-table,
html body .template-wrap.page-team .team-standings table.team-standings-table {
    table-layout: fixed !important;
}

html body .template-wrap.page-team .team-players table.team-players-table tbody td,
html body .template-wrap.page-team .team-standings table.team-standings-table tbody td {
    height: 40px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

@media (max-width: 1180px) {
    html body .template-wrap.page-team .team-last5,
    html body .template-wrap.page-team .team-leaders,
    html body .template-wrap.page-team .team-players,
    html body .template-wrap.page-team .team-standings {
        grid-column: 1 / -1 !important;
    }

    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    html body .template-wrap.page-team .team-header.fake-table {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
    }

    html body .template-wrap.page-team .team-title {
        white-space: normal !important;
    }

    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: 1fr !important;
    }
}

/* Teams page - full width tables correction */
html body .template-wrap.page-team {
    display: block !important;
}

html body .template-wrap.page-team .team-header.fake-table,
html body .template-wrap.page-team > .selection-scroll,
html body .template-wrap.page-team > .summary {
    width: 100% !important;
    margin-bottom: 18px !important;
}

html body .template-wrap.page-team > .summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

html body .template-wrap.page-team .team-last5,
html body .template-wrap.page-team .team-leaders,
html body .template-wrap.page-team .team-players,
html body .template-wrap.page-team .team-standings {
    width: 100% !important;
    max-width: none !important;
    grid-column: auto !important;
}

html body .template-wrap.page-team .team-leaders {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

html body .template-wrap.page-team .team-leaders::before {
    grid-column: 1 / -1 !important;
}

html body .template-wrap.page-team .table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

html body .template-wrap.page-team table.tableClass {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

html body .template-wrap.page-team table.tableClass th,
html body .template-wrap.page-team table.tableClass td,
html body .template-wrap.page-team table.tableClass th[style],
html body .template-wrap.page-team table.tableClass td[style] {
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body .template-wrap.page-team .team-last5 table.tableClass th,
html body .template-wrap.page-team .team-last5 table.tableClass td {
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-last5 .matchTime {
    width: 120px !important;
}

html body .template-wrap.page-team .team-last5 .matchResult {
    width: 140px !important;
}

html body .template-wrap.page-team .team-last5 .matchDetails,
html body .template-wrap.page-team .team-last5 .matchOpponent {
    width: auto !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass {
    table-layout: fixed !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-index {
    width: 34px !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-value {
    width: 78px !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-person a {
    max-width: calc(100% - 46px) !important;
}

html body .template-wrap.page-team .team-players table.team-players-table th:first-child,
html body .template-wrap.page-team .team-players table.team-players-table td:first-child {
    width: 28% !important;
    min-width: 0 !important;
}

html body .template-wrap.page-team .team-players table.team-players-table th:not(:first-child),
html body .template-wrap.page-team .team-players table.team-players-table td:not(:first-child) {
    width: 9% !important;
    text-align: center !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th:first-child,
html body .template-wrap.page-team .team-standings table.team-standings-table td:first-child {
    width: 74px !important;
    text-align: center !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th.team-logo,
html body .template-wrap.page-team .team-standings table.team-standings-table td.team-logo {
    width: 58px !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th.team-name,
html body .template-wrap.page-team .team-standings table.team-standings-table td.team-name {
    width: 38% !important;
    min-width: 0 !important;
}

html body .template-wrap.page-team .team-standings table.team-standings-table th:not(:first-child):not(.team-logo):not(.team-name),
html body .template-wrap.page-team .team-standings table.team-standings-table td:not(:first-child):not(.team-logo):not(.team-name) {
    text-align: center !important;
}

@media (max-width: 1180px) {
    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: 1fr !important;
    }

    html body .template-wrap.page-team .table-wrap {
        overflow-x: auto !important;
    }
}

/* Teams page - Last 5 + Team Leaders hero row */
html body .template-wrap.page-team > .summary {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 18px !important;
}

html body .template-wrap.page-team .team-last5 {
    flex: 1 1 470px !important;
    width: auto !important;
    min-width: 0 !important;
}

html body .template-wrap.page-team .team-leaders {
    flex: 1.15 1 560px !important;
    width: auto !important;
    min-width: 0 !important;
}

html body .template-wrap.page-team .team-players,
html body .template-wrap.page-team .team-standings {
    flex: 1 1 100% !important;
    width: 100% !important;
}

html body .template-wrap.page-team .team-last5,
html body .template-wrap.page-team .team-leaders {
    padding: 22px !important;
    background:
        linear-gradient(145deg, rgba(9, 39, 67, .90), rgba(4, 18, 33, .96)),
        radial-gradient(circle at 22% 18%, rgba(45, 177, 255, .14), transparent 38%) !important;
    border: 1px solid rgba(78, 174, 246, .30) !important;
    border-radius: 10px !important;
}

html body .template-wrap.page-team .team-last5 > h4,
html body .template-wrap.page-team .team-leaders::before {
    margin: 0 0 18px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase !important;
}

html body .template-wrap.page-team .team-last5 .table-wrap,
html body .template-wrap.page-team .team-last5 table.tableClass,
html body .template-wrap.page-team .team-last5 table.tableClass tbody {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
}

html body .template-wrap.page-team .team-last5 table.tableClass thead {
    display: none !important;
}

html body .template-wrap.page-team .team-last5 table.tableClass tbody tr {
    min-height: 54px !important;
    margin: 0 0 9px !important;
    padding: 8px 12px !important;
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) 112px !important;
    align-items: center !important;
    gap: 12px !important;
    background:
        linear-gradient(180deg, rgba(14, 50, 82, .70), rgba(7, 27, 48, .84)) !important;
    border: 1px solid rgba(82, 174, 238, .20) !important;
    border-radius: 8px !important;
}

html body .template-wrap.page-team .team-last5 table.tableClass tbody td,
html body .template-wrap.page-team .team-last5 table.tableClass tbody td[style] {
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: rgba(239, 248, 255, .95) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-last5 .matchTime {
    width: auto !important;
    color: rgba(203, 224, 240, .92) !important;
    font-variant-numeric: tabular-nums !important;
}

html body .template-wrap.page-team .team-last5 .matchOpponent {
    gap: 11px !important;
    text-overflow: ellipsis !important;
}

html body .template-wrap.page-team .team-last5 .matchOpponent img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 5px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 999px !important;
    object-fit: contain !important;
}

html body .template-wrap.page-team .team-last5 .matchResult {
    width: auto !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    color: #ffffff !important;
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
}

html body .template-wrap.page-team .team-last5 .matchResult .W,
html body .template-wrap.page-team .team-last5 .matchResult .L {
    order: 0 !important;
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html body .template-wrap.page-team .team-leaders {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

html body .template-wrap.page-team .team-leaders::before {
    content: "Team Leaders" !important;
    grid-column: 1 / -1 !important;
}

html body .template-wrap.page-team .team-leaders-detail {
    min-height: 132px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background:
        linear-gradient(180deg, rgba(13, 49, 82, .76), rgba(6, 24, 43, .90)) !important;
    border: 1px solid rgba(81, 172, 241, .24) !important;
    border-radius: 8px !important;
}

html body .template-wrap.page-team .team-leaders-detail > h4 {
    margin: 0 0 12px !important;
    color: #34b7ff !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

html body .template-wrap.page-team .team-leaders-detail .table-wrap,
html body .template-wrap.page-team .team-leaders-detail table.tableClass,
html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:not(:first-child) {
    display: none !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    background: transparent !important;
    border: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass td,
html body .template-wrap.page-team .team-leaders-detail table.tableClass td[style] {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-index {
    display: none !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-person {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-person > a:first-child {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-person > a:last-child {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: rgba(234, 245, 255, .94) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-leaders-detail .playerphoto {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    margin: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail .ld-value {
    width: auto !important;
    min-width: 58px !important;
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

@media (max-width: 1120px) {
    html body .template-wrap.page-team .team-last5,
    html body .template-wrap.page-team .team-leaders {
        flex-basis: 100% !important;
    }
}

@media (max-width: 760px) {
    html body .template-wrap.page-team .team-last5 table.tableClass tbody tr {
        grid-template-columns: 84px minmax(0, 1fr) 94px !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    html body .template-wrap.page-team .team-leaders {
        grid-template-columns: 1fr !important;
    }
}

/* Teams page - Team Leaders visibility fix */
html body .template-wrap.page-team .team-leaders,
html body .template-wrap.page-team .team-leaders-detail,
html body .template-wrap.page-team .team-leaders-detail .table-wrap,
html body .template-wrap.page-team .team-leaders-detail table.tableClass,
html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody {
    visibility: visible !important;
    opacity: 1 !important;
}

html body .template-wrap.page-team .team-leaders-detail .table-wrap {
    min-height: 64px !important;
    overflow: visible !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    margin: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr {
    visibility: visible !important;
    opacity: 1 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:not(:first-child) {
    display: none !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child,
html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody tr:first-child {
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    align-items: center !important;
    gap: 12px !important;
    background: transparent !important;
    border: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td,
html body .template-wrap.page-team .team-leaders-detail table.tableClass tbody tr:first-child td {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-index {
    display: none !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-person {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    color: #ffffff !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-person > a {
    visibility: visible !important;
    opacity: 1 !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-person > a:first-child {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    overflow: visible !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-person > a:last-child {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #f6fbff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .template-wrap.page-team .team-leaders-detail table.tableClass tr:first-child td.ld-value {
    flex: 0 0 auto !important;
    min-width: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: right !important;
}
