.container {
    max-width: 1530px;
}
.parent-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: var(--padding-1);
}
.right-wrapper {
    max-height: 80vh;
    overflow: auto;
    scrollbar-width: none;
    position: sticky;
    top: 0;
}
.right-wrapper::-webkit-scrollbar {
    display: none;
}
.card {
    border: none;
    border-radius: var(--card-border-radius);
    background-color: var(--color-bg-card);
}
.home-tagline small {
    font-weight: 600;
}

.league-name {
    font-size: var(--font-sizes-sm);
}
.league-fav-icon,
.fixture-fav-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}
.league-fav-icon.filled,
.fixture-fav-icon.filled {
    color: red;
}
.top-leagues a {
    text-decoration: none;
}
.top-leagues a:hover {
    color: var(--color-dark);
}
.top-league {
    padding: 0.7rem 1rem;
    justify-content: space-between;
    gap: 10px;
}
.top-league:hover {
    background-color: var(--color-items-hover);
}

/* .team-logo > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
} */
.center-wrapper {
    font-size: 1rem;
    min-width: 0;
}
.center-wrapper .nav-item {
    background-color: var(--color-bg-nav-items);
}
.center-wrapper .nav-item .nav-link {
    color: var(--color-global) !important;
}
.center-wrapper .nav-tabs .nav-link.active {
    background-color: var(--color-bg-nav-items);
}

.btn_filter_fixtures {
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.07px;
    font-size: var(--font-sizes-xs);
    font-weight: 500;
    line-height: 1.14;
    padding-inline: var(--gap-lg);
    gap: 0.2rem;
    border-radius: 60px;
    height: 2rem;
    width: 6.2rem;
    transition: all 0.3s ease;
    background-color: var(--bg-color-filter-btn);
    color: var(--color-dark);
}
#btn_live_fixtures {
    color: var(--color-filter-btn-live);
    background-color: var(--bg-color-filter-btn-live);
}
#btn_live_fixtures.active {
    background-color: #cb1818;
    color: white;
}
.btn_filter_fixtures.active {
    background-color: #512da8;
    color: white;
}
.fixture_status_cont {
    padding: 0.5rem;
}
.fixture_time {
    font-size: 1rem;
}
.live_score_minutes {
    color: red;
    font-style: bold;
}
.blinking-quote {
    position: absolute;
    top: 0px;
    right: -4px;
    color: red;
    font-weight: bold;
    animation: blink 1s infinite;
    font-size: 14px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.live_score_wrapper {
    position: relative;
    display: inline-block;
}

.vr {
    min-height: 50px;
    width: 1px;
    margin-left: 5px;
}

.league_container a {
    text-decoration: none;
}
.fixture:hover {
    cursor: pointer;
    color: var(--color-dark);
    background-color: var(--color-items-hover);
}
.fixture.active {
    background-color: var(--color-items-hover);
}
.fixture_status_cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-width: 65px;
    max-width: 65px;
}
.gray-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-between;
    row-gap: 20px;
    padding: 1.3rem 1rem;
    background-color: var(--color-bg-card-gray);
    border: 1px solid var(--border-gray);
}
.home_team_score,
.away_team_score {
    font-weight: 500;
}
.datetime-pill,
.gray-pill {
    border-radius: 60px;
    background-color: var(--color-bg-light-gray);
    font-size: 13px;
    padding: 0.75rem;
    color: var(--color-dark);
    font-weight: 500;
}
.dot {
    display: inline-block;
    background: var(--color-dark);
    position: relative;
    top: -3px;
    height: 6px;
    width: 6px;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 50%;
}
.versus-score {
    flex-shrink: 0;
}

.nav-tabs,
.nav-link:hover {
    border: none;
}
.nav-item {
    margin: 0px 10px;
}
.nav-link {
    transition: all 0.3s ease;
}
.nav-tabs .nav-link.active {
    border-bottom: 2px var(--color-global) solid;
    border-top: none;
    border-right: none;
    border-left: none;
}
.fixture-tabs {
    margin: 8px 0px;
}

.fixture-stats-card ul {
    padding: 0;
    margin-bottom: 0;
}
.fixture-stats-card ul li {
    padding: 15px 3px;
    margin: 5px;
    color: #8998fb;
    cursor: pointer;
}
.fixture-stats-card ul li.active {
    border-bottom: 2px var(--color-global) solid;
    color: var(--color-global);
    font-weight: 500;
}
.fixture-stats-container {
    padding: 15px 5px;
}
.odds-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
}
.odds-table th,
td {
    border: 1px solid #ddd;
    padding: 10px;
}
.odds-table th {
    text-align: center;
    background-color: var(--color-items-hover);
    font-weight: bold;
}
.odds-table tr td {
    text-align: center;
}
.odds-table tr:hover {
    background-color: var(--color-items-hover);
}
.odds-table td {
    text-align: left;
}
.stats-container {
    margin-left: 5px;
}
.stats-container .stats-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-between;
    gap: 5px;
}
.stats-metric {
    font-size: var(--font-sizes-xs);
    text-align: center;
    /* max-width:90px; */
}
.stats-value {
    width: 100%;
    text-align: center;
}
.score-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.stats-btn-container::-webkit-scrollbar {
    display: none;
}
.available-stats-container::-webkit-scrollbar {
    display: none;
}
.change-stats-btn,
.vote-btn,
.swap-stats-btn {
    padding: 4px 8px;
    border: 1px solid gray;
    border-radius: 60px;
    background-color: transparent;
    transition: all 0.3s ease;
    color: var(--color-dark);
    font-size: var(--font-sizes-xs);
}
.change-stats-btn:hover,
.change-stats-btn.active,
.swap-stats-btn.active {
    background-color: #512da8;
    color: #fff;
}
.swap-stats-btn:hover {
    border: 1px solid gray;
}

.cast-vote-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vote-btn {
    width: 33%;
    margin: 3px;
    font-weight: 600;
}
#btn-vote-home-win:hover,
#btn-vote-home-win.active {
    background-color: green;
    color: #fff;
}
#btn-vote-draw:hover,
#btn-vote-draw.active {
    background-color: var(--color-global);
    color: #fff;
}
#btn-vote-away-win:hover,
#btn-vote-away-win.active {
    background-color: red;
    color: #fff;
}
.h2h-container {
    display: flex;
    flex-direction: column;
}
.h2h-container .h2h-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-sizes-sm);
}
.h2h-row .h2h-score {
    font-size: var(--font-sizes-sm);
    font-weight: 600;
}
.gray-banner {
    background-color: var(--color-bg-light-gray);
    width: 100%;
    padding: 0.7rem;
}
.form-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: space-between;
    align-content: space-between;
    padding: 0px var(--padding-1);
    gap: 1rem;
}
.form-metrics,
.home-team-form,
.away-team-form {
    display: grid;
    grid-template-columns: auto auto 2fr auto;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}
.form-data {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}
.form-data-item {
    width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}
.form-data-item.win {
    background-color: #4caf50;
}

.form-data-item.loss {
    background-color: #c0392b;
}

.form-data-item.draw {
    background-color: gray;
}
.form-data-item.not-available {
    background-color: rgba(128, 128, 128, 0.3);
    color: #000000;
}
.err-cont {
    margin: 0px 1rem;
    padding: 0.5rem;
    border-radius: 10px;
    /* background-color: #550000; */
    border: 1px solid red;
    color: #ff0000;
}
.err-feedback {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
}
.err-feedback span.material-icons-sharp {
    font-size: 1.2rem;
}
.err-feedback span.err-text {
    font-size: 1rem;
}
.h2h-team-name {
    font-size: 1rem;
}

/* ============ODDS CARD CSS =========== */
.odds-container {
    position: relative;
}
.odds-market-tabs,
.odds-market-sub-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.odds-market-tabs::-webkit-scrollbar,
.odds-market-sub-tabs::-webkit-scrollbar {
    display: none;
}
.odds-btn {
    min-width: 10rem;
    padding: 4px;
}
.odds-btn.active,
.odds-cat-btn.active {
    background-color: var(--color-global);
    color: #ffffff;
}
.scroll-arrow {
    position: absolute;
    background-color: var(--color-bg-light-gray);
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.scroll-arrow:hover {
    background-color: var(--color-items-hover);
}

.scroll-arrow.scroll-left-arrow-odds-btns {
    top: 3px;
    left: -27px;
    margin-top: 2px;
}
.scroll-arrow.scroll-right-arrow-odds-btns {
    top: 3px;
    right: -27px;
    margin-top: 2px;
}
.scroll-arrow.scroll-left-arrow-stats-btns {
    left: -27px;
}

.scroll-arrow.scroll-right-arrow-stats-btns {
    right: -27px;
}

.scroll-arrow.scroll-left-arrow-stats-cat-btns {
    left: -27px;
    bottom: 0px;
}

.scroll-arrow.scroll-right-arrow-stats-cat-btns {
    right: -27px;
    bottom: 0px;
}
.odds-market-sub-tabs {
    background-color: var(--color-bg-light-gray);
    justify-content: center;
    align-items: center;
    padding: 0px 10px 10px;
    border-radius: 60px;
}
.odds-arrow {
    font-size: 1rem;
    font-weight: 900;
}
.odds-arrow-up {
    color: #4caf50;
}
.odds-arrow-down {
    color: #cb1818;
}

.odds-val {
    background-color: var(--color-bg-lightblue);
    width: 60%;
    text-align: center;
    padding: 3px;
    border-radius: 5px;
}
.odds-val-dc {
    width: 70%;
}
.odds-val-cs,
.odds-val-corners {
    width: 70%;
}
.odds-tagline {
    font-size: 0.8rem;
}

/*========COMMENTS CARD===========*/
.comments-section {
    padding-right: 5px; /* For scrollbar clearance */
}

.comment-area {
    background-color: transparent;
    color: var(--color-dark);
    font-size: 1rem;
    padding: 10px;
    resize: none;
}
.comment-area::-webkit-scrollbar-thumb {
    display: none;
}
.comment-area:focus {
    border: 1px solid var(--color-global);
    box-shadow: none !important;
    background-color: transparent;
    color: var(--color-dark);
}
#post-comment-btn {
    background-color: transparent;
    border: 1px solid var(--border-custom-btn);
    margin-top: 5px;
    border-radius: 60px;
    color: var(--color-dark);
}
#post-comment-btn:hover {
    background-color: var(--color-global);
    color: #ffffff;
}
#load-more-comments-btn {
    color: var(--color-dark);
}
#load-more-comments-btn:hover {
    background-color: var(--color-global);
    color: #ffffff;
}

/* ============ BET GENERATOR STYLES============ */
.bet-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.ai-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    background-color: rgba(10, 17, 40, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.ai-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.circuit-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.circuit-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.circuit-node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.circuit-node:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.2s;
}

.circuit-node:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.4s;
}

.circuit-node:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 0.6s;
}

.circuit-line {
    position: absolute;
    background-color: rgba(79, 195, 247, 0.3);
}

.circuit-line.horizontal {
    height: 2px;
    width: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circuit-line.vertical {
    width: 2px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

.loader-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    min-height: 4rem;
}

.loader-subtext {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #ffffff;
}

.bet-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(79, 195, 247, 0.2);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.bet-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.bet-results-container {
    width: 100%;
    max-width: 900px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.bet-results-container.hidden {
    opacity: 0;
}
.bet-results-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.match-header {
    background: linear-gradient(
        135deg,
        rgba(74, 111, 165, 0.3),
        rgba(22, 96, 136, 0.3)
    );
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(79, 195, 247, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.match-teams {
    font-size: 1.5rem;
    font-weight: 600;
}

.match-date {
    opacity: 0.8;
    font-size: 0.9rem;
}

.bet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.bet-card {
    background: linear-gradient(
        135deg,
        rgba(10, 17, 40, 0.7),
        rgba(22, 96, 136, 0.3)
    );
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(79, 195, 247, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bet-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
}

.bet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-type {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bet-selection {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bet-odds {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.bet-confidence-meter {
    margin: 1.5rem 0;
}

.bet-confidence-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bet-confidence-bar {
    height: 8px;
    background-color: rgba(79, 195, 247, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bet-confidence-fill {
    height: 100%;
    border-radius: 4px;
    background-color: var(--accent);
}

.bet-stats-list {
    margin-top: 1.5rem;
}

.bet-stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.bet-stat-item::before {
    content: "•";
    color: var(--accent);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.bet-recommended-badge {
    position: absolute;
    top: 0px;
    right: -5px;
    background: linear-gradient(135deg, var(--color-success), #2e7d32);
    color: white;
    padding: 0.3rem 1rem;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.4);
    z-index: 1;
}
.modal-overlay h1 {
    color: #ffffff;
}
.bet-modal-teams .logo-cont {
    width: 80px;
    height: 80px;
}
.bet-modal-away-team h1,
.away-modal-away-team h1 {
    text-align: center;
    margin: 5px 0px;
}
.bet-modal-versus {
    position: relative;
}
.bet-modal-versus h1 {
    color: var(--accent);
    margin: 0 2rem;
    font-size: 2rem;
}
@media (max-width: 768px) {
    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .modal-container {
        max-height: 60vh;
    }
    .bet-cards {
        grid-template-columns: 1fr;
    }
    .bet-modal-container .bet-modal-header {
        flex-direction: column-reverse;
    }
    .bet-modal-header-close {
        width: 100%;
    }
    .bet-modal-away-team h1,
    .away-modal-away-team h1 {
        font-size: 1.5rem;
    }
    .modal-overlay h1 {
        font-size: 2rem;
    }
    .bet-modal-team {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

/* ============END BET GENERATOR STYLES ============ */

/* ======== Search Filters ============== */
#fixtures_filters_container {
    border: 1px solid var(--border-gray);
}
#fixtures_filters_container h2 {
    font-weight: 700;
}
#min_filters {
    background-color: var(--color-bg-light-gray);
    padding: 5px;
    border-radius: 50%;
    overflow: hidden;
    color: var(--color-dark);
    cursor: pointer;
}
#min_filters:hover {
    background-color: var(--color-hover);
}
.sorting-dropdown-cont .input-group-text,
.sorting-dropdown-cont #fixture_filter {
    background-color: transparent;
    color: var(--color-dark);
}
.rounded-icon {
    padding: 5px;
    border: 1px solid #919191;
    border-radius: 50%;
    cursor: pointer;
}
.rounded-icon:hover {
    background-color: var(--color-bg-light-gray);
}
.rounded-icon.active {
    color: var(--color-global);
}
.filter-icons-wrapper,
.header-search-filters-wrapper {
    display: none;
}

/* ============MEDIA QUERIES FOR HOME PAGE =========== */
@media only screen and (max-width: 576px) {
    .container,
    .parent-wrapper {
        padding: 0;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .card {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: 10px;
    }
    .home-tagline {
        margin-top: 15px;
    }
    .bet-modal-teams {
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    /* .fixture_detail_cont .stats-container {
        display: none !important;
    } */
    /* .available-stats-container,
    hr.swap-stats-hr,
    hr.stats-category-hr {
        display: none !important;
    } */
    hr.conditional-hr {
        display: none;
    }
    .versus-card .versus-score h1 {
        font-size: 2rem;
    }
    /* hide predictions */
    .predictions_wrapper {
        display: none;
    }
}
@media only screen and (max-width: 992px) {
    .parent-wrapper {
        grid-template-columns: 1fr;
    }
    .left-wrapper,
    .right-wrapper {
        display: none;
    }
    .odds-market-tabs,
    .odds-market-sub-tabs {
        flex-wrap: wrap;
    }
    /* search filters handling (hiding from right cont & showing the icons in center) */
    .search-filters-right-cont {
        display: none;
    }
    .filter-icons-wrapper {
        display: block;
    }
    .min_filter_wrapper {
        display: none;
    }
}
@media only screen and (max-width: 1200px) {
    .team-logo-cont {
        height: 44px;
        width: 44px;
    }
    .h2h-container .h2h-row,
    .h2h-row .h2h-score {
        font-size: 1rem;
    }
}
