/* Sport Page Content Styles */

.fs-sport-page-wrapper {
    background: #181818;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Navigation Bar Styles */
.fs-sport-navbar {
    margin-bottom: 20px;
    background: linear-gradient(0deg, #181820 50%, #181818 100%);
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.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: 1px solid rgba(60, 68, 89, 1);
    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;
}
.fs-livescore-item:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}
.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.5) 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: #feba4b;
    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: #ffc547;
    border-radius: 0 0 6px 6px;
}

.fs-tab-item.active::before {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 55%, rgba(255, 255, 255, 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: #feba4b;
}

.fs-filter-item i.fa-globe {
    color: #feba4b;
}

.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: #feba4b;
    margin-left: 4px;
}

.fs-filter-item.active .fs-match-count {
    background: rgba(254, 186, 75, 0.2);
}

/* Match Card Styles */
.fs-matches-wrapper {
    display: block;
    width: 100%;
}

.fs-matches-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 100%;
}

.fs-match-card {
    background: #2e2e2e url(../images/bg_card.webp) center center / cover no-repeat;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    height: 150px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
    transition: all 0.3s ease;
}

.fs-match-card.is-live {
    border: 1px solid rgba(255, 56, 96, 0.8);
    animation: pulseBorder 2s infinite;
}

.fs-match-header,
.fs-match-content,
.fs-match-footer {
    position: relative;
    z-index: 1;
}

.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;
}

.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: #ff3860;
    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: #ff3860;
    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-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;
}

.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-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fs-score {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-score .separator {
    color: rgba(255,255,255,0.5);
}

.fs-score .vs {
    background: #16171B;
    stroke: #363636;
    text-align: center;
    font-family: "Oswald";
    font-size: 20px;
    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-width: 1px;
    position: relative;
}

.fs-score .vs::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-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, rgba(44, 44, 44, 0) 0%, rgba(27, 27, 27, 1) 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    min-height: 30px;
}

.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(25, 25, 32, 0) 0%, rgba(63, 65, 70, 1) 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: #feba4b;
}

.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: #3273dc;
    color: #fff;
    border: none;
    cursor: pointer;
}

.fs-retry-btn:hover {
    background: #2366d1;
}

/* Animations */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseBorder {
    0% {
        border-color: rgba(255, 56, 96, 0.8);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.4);
    }
    70% {
        border-color: rgba(255, 56, 96, 0.3);
        box-shadow: 0 0 0 6px rgba(255, 56, 96, 0);
    }
    100% {
        border-color: rgba(255, 56, 96, 0.8);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 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(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.fs-tab-item:hover i {
    color: #2ecc71;
}

.fs-filter-item:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.fs-filter-item:hover i {
    color: #2ecc71 !important;
}

.fs-filter-item:hover .fs-match-count {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* Keep active states unchanged */
.fs-tab-item.active:hover,
.fs-filter-item.active:hover {
    background: rgba(23, 28, 39, 1);
    color: #feba4b;
    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(254, 186, 75, 0.2);
    color: #feba4b;
}

.fs-pagination {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.fs-load-more {
    background: #2271b1;
    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: #135e96;
}

.fs-loading {
    color: #666;
    font-size: 14px;
}

.fs-loading i {
    margin-right: 5px;
}

.fs-livescore-item i.fa-chart-line {
    color: #feba4b;
}

/* 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: #feba4b;
    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: #ff3860;
    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: #ff3860;
}

@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;
    }
}