@keyframes scoreFlash {
    0%   { background-color: rgba(255, 193, 7, 0.55); border-radius: 3px; }
    100% { background-color: transparent; }
}
.score-updated {
    animation: scoreFlash 1.8s ease-out forwards;
}

.ofs-competition-header {
    border-radius: 20px;
    background: transparent;
    box-shadow: 0px 2px 2px #00000012;
}

.ofs-competition-info {
    background: var(--base-white) 0% 0% no-repeat padding-box;
    box-shadow: 0px 2px 2px #00000012;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #F4F4F4;
}

.ofs-league-logo {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    /* filter: grayscale(1) brightness(0) invert(1); */
}

.ofs-flag {
    max-width: clamp(1rem, 2.2vw, 1.25rem);
    max-height: clamp(1rem, 2.2vw, 1.25rem);
}

.ofs-league-name {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--base-white);
}

.ofs-country-name {
    font: normal normal 500 12px/14px Barlow;
    color: var(--reading-gray);
}

.ofs-competition-tabs {
    background: var(--base-white) 0% 0% no-repeat padding-box;
    border-radius: 0 0 10px 10px;
}

.ofs-tab {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(0.8125rem, 1vw, 0.875rem);
    color: var(--reading-gray);
    position: relative;
    cursor: pointer;
}

.ofs-tab.active {
    color: #242129;
}

.ofs-tab.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: -5px;
    right: 0;
    width: 110%;
    height: 3px;
    background-color: #D94646;
    border-radius: 10px 10px 0px 0px;
}

.ofs-week-select,
.ofs-season-select {
    background: var(--secondary-line);
    color: var(--offside-black);
    font: normal normal 500 14px/17px Barlow;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-icon {
    width: 15px;
    height: 15px;
}

.ofs-competition-standing {
    /*background: var(--base-white);*/
    /*box-shadow: 0px 2px 2px #00000012;*/
    /*border-radius: 10px;*/
}

.ofs-competition-standing-tabs {
    background: var(--base-white);
    border-radius: 10px 10px 0 0;
}

.ofs-competition-statistics-tabs {
    background: var(--base-white);
    border-radius: 10px 10px 0 0;
}

.ofs-competition-history-tabs {
    background: var(--base-white);
    border-radius: 10px 10px 0 0;
}

.ofs-standing-tab, .ofs-stat-tab {
    font: normal normal 600 14px/17px Barlow;
    color: var(--reading-gray);
    position: relative;
    cursor: pointer;
}

.ofs-standing-tab.active, .ofs-stat-tab.active {
    color: var(--offside-black);
}

.ofs-standing-tab.active::after, .ofs-stat-tab.active::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: -3px;
    right: 0;
    width: 110%;
    height: 4px;
    background-color: #D94646;
    border-radius: 10px 10px 0px 0px;
}

.ofs-statistics-tab,
.ofs-history-tab {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(0.813rem, 2.2vw, 1.125rem);
    color: var(--reading-gray);
    position: relative;
    cursor: pointer;
}

.ofs-statistics-tab.active {
    color: var(--offside-black);
}

.ofs-statistics-tab.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: -3px;
    right: 0;
    width: 110%;
    height: 4px;
    background-color: #D94646;
    border-radius: 10px 10px 0px 0px;
}

    .ofs-statistics-tab-item.active::after {
        content: "";
        position: absolute;
        bottom: -17px;
        left: -3px;
        right: 0;
        width: 110%;
        height: 4px;
        background-color: #D94646;
        border-radius: 10px 10px 0px 0px;
    }

.ofs-history-tab.active {
    color: var(--offside-black);
}

.ofs-history-tab.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: -3px;
    right: 0;
    width: 110%;
    height: 4px;
    background-color: #D94646;
    border-radius: 10px 10px 0px 0px;
}

.standing-live-btn {
    background: #EFEFEF;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #000000;
    font-size: 16px;
    border-radius: 6px;
    max-height: 40px;
}

.ofs-standing-header {
   
}

.ofs-standing-table-wrapper {
    -webkit-overflow-scrolling: touch;
}

.ofs-table-title {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #000000;
    background: var(--base-white);
}

.table-wrapper {
    background: var(--base-gray);
    border-radius: 10px;
}

.ofs-standing-table {
    width: 100%;
    border-collapse: collapse;
}

.ofs-standing-table-team-logo {
    max-height: 18px;
    max-width: 18px
}
.ofs-standing-matches-table th,
.ofs-standing-matches-table td,
.ofs-standing-table th,
.ofs-standing-table td {
    padding: 3px;
    text-align: center;
    vertical-align: middle;
}

.ofs-standing-table thead tr th {
    font: normal normal 600 14px/19px Barlow;
    color: var(--reading-gray);
}

.ofs-standing-table th:nth-child(1) {
    /* width: 4%; */
}

.ofs-standing-table th:nth-child(2) {
    text-align: left;
    padding-left: 11px;
}

.ofs-standing-table th:nth-child(10) {
    /* width: 18%; */
}

.ofs-standing-table td:nth-child(2) {
    align-items: center;
    text-align: left;
}

/* .ofs-standing-table td:nth-child(2) img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    } */

.ofs-standing-table td:last-child div {
    display: flex;
    justify-content: center;
    gap: 1px;
}

.ofs-standing-table td:last-child img {
    width: 22px;
    height: 22px;
}

.ofs-standing-table tbody tr {
    font: normal normal normal 13px/17px Open Sans;
}
    .ofs-standing-table tbody tr td:nth-child(2),
    .ofs-standing-matches-table tbody tr {
        font: normal normal 500 13px/17px Barlow;
        color: var(--true-black);
        /*
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
    font-size: clamp(0.7rem, 2vw, 0.875rem);
        */
    }

.ofs-standing-table tr {
    position: relative;
    border-bottom: 2px solid #EFEFEF;
}

.ofs-standing-table tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 70%;
    border-radius: 0 4px 4px 0;
    background-color: var(--leftbar-color, transparent);
}

.ofs-competition-outcomes-wrapper {
    background: var(--base-white);
}


.outcome-item {
    position: relative;
    font: normal normal 500 12px/15px Barlow;
    color: #000;
    padding-left: 16px;
}

.outcome-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: clamp(1.313rem, 2vw, 1.688rem);
    border-radius: 0 4px 4px 0;
}

.outcome-item::before {
    background: var(--color, #000);
}

.ofs-competition-point-deductions {
    background: var(--base-white);
    border-radius: 10px;
}

.deduction-list {
    width: 90%;
}

.deduction-title,
.current-week-title {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #000000;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.deduction-team {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #000000;
    font-size: 16px;
}

.deduction-value {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #D94646;
    font-size: 16px;
}

.ofs-competition-current-week {
    background: var(--base-white);
    border-radius: 10px;
}

.week-match-item {
    background: var(--base-gray);
    border-radius: 10px;
}

.match-date {
    font: normal normal 600 12px/17px Open Sans;
    color: var(--reading-gray);
}

.match-info span {
    font-size: clamp(0.8rem, 2vw, 1rem) !important;
    white-space: nowrap;
    font-family: "Barlow", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

.match-score span {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--true-black);
    font-size: 16px;
}

.ofs-competition-statistics {
    background: var(--base-white);
    border-radius: 10px 10px 0 0;
}

.ofs-statistics-table-team,
.ofs-history-table-winners,
.ofs-history-table-total-winners,
.ofs-history-table-top-scorers {
    border-top: 1px solid var(--secondary-line);
    display: none;
}

.ofs-statistics-table-team thead tr {
    border-bottom: 1px solid var(--secondary-line);
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--offside-black);
    font-size: clamp(0.65rem, 2vw, 0.875rem);
}

.ofs-statistics-table-player thead tr {
    border-bottom: 1px solid var(--secondary-line);
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--offside-black);
    font-size: 14px;
}

.ofs-statistics-table-team tbody tr {
    border-bottom: 1px solid var(--secondary-line);
}

.statistics-team {
    font-family: "Barlow";
    font-weight: 700;
    font-style: normal;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #000000;
}

.ofs-statistics-table-team tbody tr td {
    border-right: 1px solid var(--secondary-line);
}

.ofs-statistics-table-team thead tr th {
    border-right: 1px solid var(--secondary-line);
}

.statistics-value {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #000000;
    font-family: "Barlow";
    font-weight: 600;
    font-style: normal;
}

.statistics-player-table-tab {
    border-top: 1px solid var(--secondary-line);
    border-bottom: 1px solid var(--secondary-line);
}

.statistics-player-table-tab span {
    background: var(--secondary-line);
    border-radius: 6px;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px/17px;
    cursor: pointer;
}

.statistics-player-table-tab span.active {
    background: #D94646;
    color: #fff;
}

.ofs-statistics-table-player {
    display: none;
}

.statistics-table-player-name {
    font: normal normal normal 13px/16px Barlow;
    font-weight: 500;
}

a.statistics-table-player-name {
    text-decoration: none;
    color: inherit;
}

a.statistics-table-player-name:hover {
    text-decoration: underline;
}

.statistics-table-player-header {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--true-black);
}

.ofs-statistics-table-player thead tr {
    font: normal normal medium 14px/17px Barlow;
    color: #242129;
}


.ofs-statistics-table-player thead tr th {
    border-right: 1px solid var(--secondary-line);
}

.ofs-statistics-table-player tbody tr td {
    border-right: 1px solid var(--secondary-line);
}

.ofs-statistics-table-player tbody tr {
    border-bottom: 1px solid var(--secondary-line);
}

.ofs-statistics-table-player thead tr {
    border-bottom: 1px solid var(--secondary-line);
}

.player-statistics-rating {
    border: 1px solid #00FF00;
    background: #046400;
    color: #fff;
    border-radius: 3px;
    padding: 1px;
}

.player-statistics-item {
    font: normal normal 600 16px/22px Open Sans;
}

.statistics-player-table-header-item {
    font-family: "Barlow", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

.table-item {
    display: none;
}

.table-item.active {
    display: block;
}

.ofs-competition-transfers {
    background: var(--base-white);
    border-radius: 10px;
}

.player-img-wrapper {
    /* background: var(--passive-tab);
    border-radius: 50%;
     */
    min-width:40px;
}

.ofs-competition-transfers table thead {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(0.65rem, 2vw, 0.875rem);
    color: var(--offside-black);
}

.ofs-competition-transfers table thead tr {
    border-bottom: 1px solid var(--secondary-line);
}

.ofs-competition-transfers table thead tr th {
    border-right: 1px solid var(--secondary-line);
}

.ofs-competition-transfers table tbody tr {
    border-bottom: 1px solid var(--secondary-line);
}

.ofs-competition-transfers table tbody tr td {
    border-right: 1px solid var(--secondary-line);
}

.col-wide {
    width: 22%;
}

.col-narrow {
    width: 11%;
}

.ofs-competition-transfers th>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ofs-competition-transfers th>div span {
    text-align: left;
    padding-left: 4px;
}

.ofs-competition-transfers th>div img {
    padding-right: 4px;
}

.team-logo-wrapper {
    /* width: 40px;
    height: 32px; */
    display: flex;
    align-items: center;
    justify-content: start;
    flex-shrink: 0;
}

.team-logo-wrapper img {
    max-height: clamp(1rem, 2vw, 1.5rem);
    max-width: clamp(1rem, 2vw, 1.5rem);
    object-fit: contain;
}

.fixture-team-name {
    font: normal normal normal 13px/17px Barlow;
    white-space: nowrap;
    font-weight: 500 !important;
}

.match-score-text {
    font: normal normal 600 13px/17px Barlow;
}

.ofs-competition-history {
    background: var(--base-white);
}

.ofs-competition-history table thead tr {
    border-bottom: 1px solid var(--secondary-line);
}

.ofs-competition-history table tbody tr {
    border-bottom: 1px solid var(--secondary-line);
}

.ofs-competition-history table thead tr th {
    border-right: 1px solid var(--secondary-line);
}

.ofs-competition-history table tbody tr td {
    border-right: 1px solid var(--secondary-line);
}

.fixture-close-btn {
    background: var(--base-white);
    box-shadow: 0px 2px 2px #00000012;
    border-radius: 10px;
    cursor: pointer;
}

.fixture-week-select {
    background: var(--base-white);
    box-shadow: 0px 2px 2px #00000012;
    border-radius: 10px;
}

.fixture-week-select span {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0px;
    color: #000000;
}

.standing-group-select {
    background: #EFEFEF;
    box-shadow: 0px 2px 2px #00000012;
    border-radius: 10px;
}

.group-select-text {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0px;
    color: #000000;
}

.ofs-competition-fixture-matches {
    background: var(--base-white);
    border-radius: 10px;
}

.custom-calendar-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
    display: none;
    background: transparent;
    min-width: 377px;
    width: max-content;
    display: block;
    margin-top: 5px;
}

.ofs-week-select-wrapper {
    /*width: 160px;*/
    position: relative;
}

.ofs-week-select {
    background: var(--sof-dark);
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: var(--base-white);
    font-size: clamp(0.8rem, 2vw, 1rem);
    border-radius: 6px;
}

.ofs-week-dropdown {
    /*background: var(--sof-dark);*/
    border: 1px solid var(--secondary-line);
    /*border-radius: 6px;*/
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    /*font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: var(--base-white);
    font-size: clamp(0.8rem, 2vw, 1rem);*/
}

.ofs-season-dropdown {
    background: var(--secondary-line);
    /*border: 1px solid var(--sof-dark);*/
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    color: var(--true-black);
    font:normal normal 500 14px/17px Barlow
}

.ofs-week-option,
.ofs-season-option {
    cursor: pointer;
    transition: background 0.2s;
}

.ofs-week-option:hover {
    background: #f2f2f2;
}

.ofs-week-option.active {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.ofs-season-option:hover {
    background: #f2f2f2;
}

.ofs-season-option.active {
    font-weight: 700;
    color: var(--primary-color);
}

.form-home {
    background: url('/img/noun-home-1560549.png') 0% 0% no-repeat padding-box;
    background-position: center;
    height: 18px;
    width: 18px;
}

.form-away {
    background: url('/img/noun-plane-6304856.png') 0% 0% no-repeat padding-box;
    background-position: center;
    height: 18px;
    width: 18px;
}
.form-bus {
    background: url('/img/noun-bus-2979599.png') 0% 0% no-repeat padding-box;
    background-position: center;
    height: 18px;
    width: 18px;
}
.form-win {
    height: 18px;
    width: 18px;
    background: #27AE60;
    font: 700 10px/1 Barlow, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.form-match-link:last-child .form-win {
    position: relative;
    z-index: 1;
}

.form-match-link:last-child .form-win::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #27AE60;
    border-radius: 1px;
}

.form-lose {
    height: 18px;
    width: 18px;
    background: #D94646;
    font: 700 10px/1 Barlow, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.form-match-link:last-child .form-lose {
    position: relative;
    z-index: 1;
}

.form-match-link:last-child .form-lose::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #D94646;
    border-radius: 1px;
}

.form-draw {
    height: 18px;
    width: 18px;
    background: #9E9E9E;
    font: 700 10px/1 Barlow, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.form-match-link:last-child .form-draw {
    position: relative;
    z-index: 1;
}

.form-match-link:last-child .form-draw::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #9E9E9E;
    border-radius: 1px;
}

.ofs-season-select-wrapper {
    position: relative;
    display: inline-block;
}

@media (max-width: 550px) {

    .ofs-standing-table tr::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 6px;
        width: 4px;
        height: 55%;
        border-radius: 0 4px 4px 0;
        background-color: var(--leftbar-color, transparent);
    }

    .ofs-standing-table th:nth-child(2),
    .ofs-standing-table td:nth-child(2) {
        min-width: 0;
        width: 120px;
        max-width: 120px;
        text-align: left;
        padding-left: 2px;
    }

    .ofs-week-select-wrapper {
        width: 82px;
        position: relative;
    }

    .ofs-standing-matches-table th,
    .ofs-standing-matches-table td,
    .ofs-standing-table th,
    .ofs-standing-table td {
        padding: 5px 0px;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }

    .ofs-statistics-table-team tbody tr {
        border-bottom: none;
    }

    .ofs-statistics-table-team tbody tr td {
        border-right: none;
    }

    .ofs-statistics-table-team thead tr th {
        border-right: none;
    }

    .ofs-statistics-table-player thead tr th {
        border-right: none;
    }

    .ofs-statistics-table-player tbody tr td {
        border-right: none;
    }

    .ofs-statistics-table-player tbody tr {
        border-bottom: none;
    }

    .ofs-competition-history table thead tr {
        border-bottom: 1px solid var(--secondary-line);
    }

    .ofs-competition-history table tbody tr {
        border-bottom: none;
    }

    .ofs-competition-history table thead tr th {
        border-right: none;
    }

    .ofs-competition-history table tbody tr td {
        border-right: none;
    }

}
