.fs-sport-page-wrapper {
    background: var(--fs-bg-dark);
    padding: 20px;
    border-radius: var(--fs-border-radius);
    margin-bottom: 30px;
}
.fa, .fab, .fad, .fal, .far, .fas:active {
    color: var(--fs-primary-color);
}
/* Navigation Bar Styles */
.fs-sport-navbar {
    margin-bottom: 20px;
    background: linear-gradient(0deg, #181820 50%, #181818 100%);
    border-radius: var(--fs-border-radius);
    padding: 15px;
    width: 100%;
    border: 1px solid var(--fs-border-color);
}

.fs-nav-tabs {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.fs-tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.fs-tab-list li {
    margin: 0 !important;
    padding: 0;
}
.fs-filter-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
}

/* Hide scrollbar */
.fs-tab-list::-webkit-scrollbar,
.fs-filter-list::-webkit-scrollbar {
    display: none;
}

.fs-tab-nav-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.fs-tab-nav-item:last-child .fs-tab-item::before {
    display: none;
}

.fs-tab-item{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    min-width: 120px;
    font-weight: 500;
}
.fs-filter-item, .fs-livescore-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 120px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    font-family: "Oswald", sans-serif;
    position: relative;
    border: 1px solid rgba(var(--fs-primary-solid-rgb), 1);
}
.fs-livescore-item:hover {
    background: rgba(41, 168, 30, 0.1);
    border-color: rgba(41, 168, 30, 0.4);
    color: #29A81E;
}
.fs-tab-item {
    position: relative;
}

.fs-tab-item::before {
    content: "";
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(360deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 55%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
}

.fs-tab-item.active,
.fs-filter-item.active {
    background: rgba(23, 28, 39, 1);
    color: var(--fs-primary-color);
    text-shadow: 0px 0.92px 3.678px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(60, 68, 89, 1);
    position: relative;
}

.fs-tab-item.active::after,
.fs-filter-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--fs-primary-color);
    border-radius: 0 0 6px 6px;
}

.fs-tab-item.active::before {
    background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(7, 83, 91, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
}

.fs-filter-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 1;
}

.fs-filter-item i.fa-circle {
    font-size: 8px;
    color: #ff3860;
    animation: blink 1s infinite;
}

.fs-filter-item i.fa-fire {
    color: #ff3860;
}

.fs-filter-item i.fa-calendar-day,
.fs-filter-item i.fa-calendar-alt {
    color: var(--fs-primary-color);
}

.fs-filter-item i.fa-globe {
    color: var(--fs-primary-color);
}

.fs-filter-item span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.fs-filter-item .fs-count {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
    height: auto;
    text-transform: none;
    font-weight: normal;
    letter-spacing: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fs-match-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fs-primary-color);
    margin-left: 4px;
}

.fs-filter-item.active .fs-match-count {
    background: rgba(41, 168, 30, 0.15);
}

/* Match Card Styles */
.fs-matches-wrapper {
    display: block;
    width: 100%;
    perspective: 1000px;
}

.fs-matches-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 100%;
}

.fs-match-card {
    background: var(--fs-surface-darker) url(../images/bg_cardz.webp) center center / cover no-repeat;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    border: 1px solid var(--fs-border-color);
    height: 150px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--fs-box-shadow);
}

.fs-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transform: translateZ(-5px);
    border-radius: 8px;
    z-index: -1;
}

.fs-match-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, */
    /*    rgba(255, 255, 255, 0.1) 0%, */
    /*    rgba(255, 255, 255, 0) 40%, */
    /*    rgba(0, 0, 0, 0.1) 100%);*/
    pointer-events: none;
    z-index: 1;
}

.fs-match-card.is-live {
    border: 1px solid var(--fs-live-color);
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.2);
}

.fs-match-card:hover {
    border-color: rgba(41, 168, 30, 0.4);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4),
                0 1px 3px rgba(255, 255, 255, 0.08) inset;
}

.fs-match-card.is-live:hover {
    box-shadow: 0 5px 10px rgba(227, 27, 35, 0.3);
}

.fs-match-header,
.fs-match-content,
.fs-match-footer {
    position: relative;
    z-index: 2;
}

.fs-match-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
    min-height: 35px;
}

.fs-league-name, 
.fs-match-time {
    z-index: 1;
    position: relative;
    padding: 5px 15px;
    margin-bottom: 0;
    border-radius: 13px;
    background: transparent;
    align-items: center;
}

.fs-match-time::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px;
    padding: 1px;
    background: linear-gradient(0deg, #41434A 10%, rgba(46, 46, 46, 0.1019607843) 70%) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.fs-live-tag {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--fs-live-color);
    font-weight: bold;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 56, 96, 0.1);
    z-index: 2;
    text-transform: uppercase;
}

.fs-live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--fs-live-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: blink 1s infinite;
}

.fs-match-content {
    padding: 10px 25px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-height: 85px;
}

.fs-match-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.fs-match-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fs-score {
    border-radius: 6.75px;
    display: flex;
    font-size: clamp(1.1875rem, 2vw + 0.5rem, 1.1875rem);
    font-weight: 500;
    gap: 0.3rem;
    justify-content: space-evenly;
    position: relative;
    border-radius: 100px;
    background: rgba(23, 28, 39, 1);
    border: 0.0625rem solid rgba(62, 61, 60, 0);
    -webkit-box-shadow: 0 0 0.75rem 0 rgba(0, 0, 0, 0.12) inset;
    box-shadow: 0 0 0.75rem 0 rgba(0, 0, 0, 0.12) inset;
}

.fs-score::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    opacity: 0.6;
    pointer-events: none;
    transform: none;
    border-radius: 100px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: linear-gradient(180deg, rgba(62, 61, 60, 0) 15%, #FFC300 55%, rgba(62, 61, 60, 0) 80%);
}

.fs-score.__vs {
    text-align: center;
    font-family: "Oswald";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    color: #fff;
    stroke: #363636;
    stroke-width: 1px;
    background: #16171B;
    padding: 0;
    margin: 0 auto;
}

.fs-score p {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.fs-score .separator {
    margin: 0 5px;
}

.fs-score .home-score,
.fs-score .away-score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: 600;
}

.fs-score .winner {
    background: linear-gradient(157deg, var(--yellow-gradient-start) 4.84%, var(--yellow-gradient-middle) 22.06%, var(--yellow-gradient-end) 41.69%, var(--yellow-gradient-end) 84.94%), var(--yellow-gradient-middle);
    color: var(--yellow-text);
    padding-inline: 10px !important;
    -webkit-box-shadow: inset -.25rem -.25rem .25rem 0 var(--yellow-shadow-dark), inset 0 .125rem .25rem 0 var(--yellow-shadow-light), inset .125rem .25rem .25rem 0 var(--yellow-shadow-highlight), 0 .125rem .5rem 0 var(--yellow-shadow-dark);
    box-shadow: inset -.25rem -.25rem .25rem 0 var(--yellow-shadow-dark), inset 0 .125rem .25rem 0 var(--yellow-shadow-light), inset .125rem .25rem .25rem 0 var(--yellow-shadow-highlight), 0 .125rem .5rem 0 var(--yellow-shadow-dark);
}

.fs-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.fs-team img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fs-match-card:hover .fs-team img {
    transform: translateZ(10px);
}

.fs-team-name {
    font-size: 12px;
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
}

.fs-match-footer {
    margin: 0px 20px 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-radius: 10px;
    /*background: linear-gradient(360deg, #101010 0%, #1c1c1c 100%);*/
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    min-height: 30px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.2);
}

.fs-match-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    /*background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(7, 83, 91, 0.4) 100%);*/
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.fs-commentator, 
.fs-fire-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: normal;
}

.fs-commentator i {
    color: #3273dc;
}

.fs-fire-count i {
    color: #ff3860;
}

.fs-team-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
}

.fs-no-matches {
    grid-column: 1/-1;
    text-align: center;
    padding: 20px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.fs-retry-btn {
    margin-top: 10px;
    padding: 5px 15px;
    border-radius: 4px;
    background: var(--fs-primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
}

.fs-retry-btn:hover {
    background: var(--fs-primary-dark);
}

/* Animations */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 
@keyframes pulseBorder {
    0% {
        border-color: rgba(41, 168, 30, 0.8);
        box-shadow: 0 0 0 0 rgba(41, 168, 30, 0.4);
    }
    70% {
        border-color: rgba(41, 168, 30, 0.3);
        box-shadow: 0 0 0 6px rgba(41, 168, 30, 0);
    }
    100% {
        border-color: rgba(41, 168, 30, 0.8);
        box-shadow: 0 0 0 0 rgba(41, 168, 30, 0);
    }
}
*/

/* Responsive Styles */
@media (min-width: 850px) {
    .fs-matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 849px) {
    .fs-team-icon {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
    
    .fs-league-name {
        max-width: 120px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fs-match-time {
        font-size: 11px;
    }
}

@media (max-width: 549px) {
    .fs-tab-item {
        min-width: unset;
        flex-direction: column;
        padding: 8px 10px;
        gap: 4px;
    }

    .fs-tab-item i {
        font-size: 16px;
    }

    .fs-tab-item span {
        font-size: 12px;
    }

    .fs-tab-item.active::after {
        width: 40px;
    }

    .fs-league-name {
        max-width: 100px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.fs-tab-item:hover {
    background: rgba(41, 168, 30, 0.1);
    border-color: rgba(41, 168, 30, 0.5);
    color: #29A81E;
}

.fs-tab-item:hover i {
    color: #29A81E;
}

.fs-filter-item:hover {
    background: rgba(41, 168, 30, 0.1);
    border-color: rgba(41, 168, 30, 0.5);
    color: #29A81E;
}

.fs-filter-item:hover i {
    color: #29A81E !important;
}

.fs-filter-item:hover .fs-match-count {
    background: rgba(41, 168, 30, 0.15);
    color: #29A81E;
}

/* Keep active states unchanged */
.fs-tab-item.active:hover,
.fs-filter-item.active:hover {
    background: rgba(23, 28, 39, 1);
    color: #29A81E;
    border-color: rgba(60, 68, 89, 1);
}

.fs-tab-item.active:hover i,
.fs-filter-item.active:hover i {
    color: inherit !important;
}

.fs-filter-item.active:hover .fs-match-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fs-primary-color);
}

.fs-pagination {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.fs-load-more {
    background: var(--fs-primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.fs-load-more:hover {
    background: var(--fs-primary-dark);
}

.fs-loading {
    color: #666;
    font-size: 14px;
}

.fs-loading i {
    margin-right: 5px;
}

.fs-livescore-item i.fa-chart-line {
    color: #E31B23;
}

/* Livescore Table Styles */
.fs-livescore-table {
    width: 100%;
    overflow-x: auto;
    background: #2e2e2e;
    border-radius: 8px;
    padding: 15px;
}

.fs-score-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.fs-score-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-score-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    vertical-align: middle;
}

.fs-score-table .league-header {
    background: rgba(0, 0, 0, 0.3);
}

.fs-score-table .league-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.fs-score-table .league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fs-score-table .league-country {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-left: auto;
}

.fs-score-table .team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.fs-score-table .team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fs-score-table .score-section {
    text-align: center;
    min-width: 100px;
}

.fs-score-table .score {
    font-weight: bold;
    font-size: 16px;
    color: var(--fs-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fs-score-table .score.live {
    color: #2ecc71;
}

.fs-score-table .score-separator {
    color: rgba(255, 255, 255, 0.3);
}

.fs-score-table .match-minute {
    font-size: 12px;
    color: var(--fs-live-color);
    margin-top: 4px;
}

.fs-score-table .match-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    width: 60px;
}

.fs-score-table .match-status {
    width: 100px;
}

.fs-score-table .status-live {
    color: #2ecc71;
    font-weight: 500;
}

.fs-score-table .match-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.fs-score-table .halftime {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.fs-score-table .live-match {
    background: rgba(46, 204, 113, 0.05);
}

.fs-score-table .no-matches,
.fs-score-table .error-message,
.fs-score-table .loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.fs-score-table .error-message {
    color: var(--fs-error-color);
}

@media (max-width: 768px) {
    .fs-livescore-table {
        padding: 10px;
        margin: 0 -15px;
        border-radius: 0;
    }

    .fs-score-table .team-info {
        min-width: 120px;
    }

    .fs-score-table .league-country {
        display: none;
    }

    .fs-score-table td {
        padding: 8px;
    }

    .fs-score-table .match-stats {
        display: none;
    }
}

.fs-match-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Responsive styles for fs-livescore-item */
@media (max-width: 768px) {
    .fs-livescore-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        height: auto;
        min-height: 48px;
        min-width: 48px;
        background: rgba(23, 28, 39, 0.6);
        border: 1px solid rgba(254, 186, 75, 0.2);
        position: relative;
        overflow: hidden;
    }

    .fs-livescore-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent,
            rgba(254, 186, 75, 0.5),
            transparent
        );
    }

    .fs-livescore-item i {
        font-size: 16px;
        color: #feba4b;
        margin: 0;
        transition: transform 0.3s ease;
    }

    .fs-livescore-item span {
        font-size: 11px;
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .fs-livescore-item:hover {
        background: rgba(23, 28, 39, 0.8);
    }

    .fs-livescore-item:hover i {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .fs-livescore-item {
        min-height: 45px;
        min-width: 45px;
        padding: 5px 7px;
    }

    .fs-livescore-item i {
        font-size: 15px;
    }

    .fs-livescore-item span {
        font-size: 10px;
        margin-top: 3px;
    }
}

@media (max-width: 360px) {
    .fs-livescore-item {
        min-height: 42px;
        min-width: 42px;
        padding: 4px 6px;
    }

    .fs-livescore-item i {
        font-size: 14px;
    }

    .fs-livescore-item span {
        font-size: 9px;
        margin-top: 2px;
    }
}