.matchup-details {
    max-width: 1470px;
    margin: 30px auto;
    margin-bottom: 0px !important; /*Keeps table glued to the header.*/
    background: linear-gradient(to bottom, #003333, #001f1f);
    color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-family: 'Poppins', sans-serif;
}

.matchup-card {
    max-width: 1470px;
    margin: 10px auto;
    background: linear-gradient(to bottom, #003333, #001f1f);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.GameLinks {
    max-width: 88%;
    margin: 0 auto 10px;
    padding: 0 60px;
}
.nba-matchups-wrap .GameLinks {
    position: sticky;
    top: 84px;
    z-index: 10;
    background: #001f1f;
    padding: 10px 60px;
}
.GameLinks .slick-disabled,
.GameLinks .slick-next.hidden,
.GameLinks .slick-prev.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure NBA matchup tables align with page width */
.nba-matchups-wrap .ranking-table-wrapper {
    max-width: 1470px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .GameLinks-mobile-dropdown {
        position: sticky;
        top: 84px;
        z-index: 10;
        background: #001f1f;
        padding: 10px 0;
    }
    .nba-matchups-wrap .GameLinks-mobile-dropdown {
        position: sticky;
        top: 84px;
        z-index: 10;
    }
}

/* Mobile dropdown for selecting games */
.GameLinks-mobile-dropdown select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
    padding: 12px 20px;
    padding-left: 40px;
    padding-right: 80px; /* space for logos + arrow */

    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    text-align-last: center;

    border-radius: 30px !important;
    border: 2px solid #1de1d1;

    --team-logo-left: none;
    --team-logo-right: none;
    background-image: var(--team-logo-left, none), var(--team-logo-right, none), url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='%231de1d1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: left 16px center, right 48px center, right 16px center;
    background-size: 20px 20px, 20px 20px, 20px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom game dropdown */
.custom-game-dropdown {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.custom-game-selected {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    border: 2px solid #1de1d1;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
}

.custom-game-selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1de1d1;
    transform: translateY(-50%);
}

.custom-game-dropdown.open .custom-game-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-game-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 2px solid #1de1d1;
    border-radius: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    /* Limit height so mobile lists fit within the viewport */
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1000;
}

.custom-game-dropdown.open .custom-game-options {
    display: block;
}

.custom-game-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    cursor: pointer;
    color: #fff;
}

.custom-game-option:hover {
    background: #003333;
}

.custom-game-option img,
.custom-game-selected img {
    width: 20px;
    height: 20px;
}
.Game_Teams {
    background: #1de1d1;
    color: #fff;
    text-align: center;
    padding: 8px 8px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-style: groove;
    border-width: 5px;
    border-color: black;
}
.Game_Teams {
    background: #003333;
    transition: background 0.3s ease;
}

.Game_Teams:hover {
    background: #001f1f;
}

.GameLinkContainer a:hover {
    text-decoration: none;
}


.Game_Teams span:not(.Game_Time):not(.team-name) {
    color: #1de1d1;
    font-size: 28px;
    font-weight: 600;
    line-height: 30px;
    margin: 3px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.Game_Teams:hover span:not(.Game_Time):not(.team-name) {
    color: #ffffff;
}

.Game_Teams span.team-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.Game_Teams .game-link-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.Game_Time {
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    color: #7f7f7f;
    text-align: center;
    margin-bottom: 0;
    display: block;
    margin-top: 4px;
}
.Game_Teams span.Game_Time {
    font-size: 12px;
    display: block;
    color: #fff;
    line-height: normal;
}
.slick-arrow {
    font-family: fontAwesome;
    font-size: 35px;
    background: #ededed;
    width: 45px;
    display: inline-block;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    text-align: center;
    color: #a4a4a4;
    transition: all 0.5s ease;
    padding: 0;
    padding-left: 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.slick-arrow.fa-angle-left {
    padding-left: 0;
    padding-right: 5px;
    right: auto;
    left: 15px;
}
.slick-arrow:hover {
    background: #d9f5ff;
    color: #1de1d1;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team {
    flex: 1;
}

.team-logo {
    width: 100%;
    max-width: 50px;
    height: auto;
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .team-logo {
        max-width: 35px;
    }
}

.vs {
    flex: 0.2;
    font-size: 1.5rem;
    color: #1de1d1;
}

.score {
    color: #ccc;
    font-size: 0.9rem;
}

.odds-row {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.odds-box {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    color: #fff;
}

.odds-box span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}


.odds-scope-logo {
    height: 30px;
    margin-right: 8px;
}

span.favorite-odds {
    color: white !important;
}

.game-info {
    margin: 12px 0;
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    text-align: center;
    position: relative;
}

.game-info .info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.game-info .info-block h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #fff;
}

.game-info .info-block .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.game-info .info-block.links p {
    margin: 4px 0;
}

.game-info .info-block.links a {
    color: #1de1d1;
}
.odds-row.split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
    flex-wrap: wrap;
}

.team-odds-box {
    width: 32%;
    text-align: center;
    color: #fff;
}

.center-total-box {
    width: 32%;
    text-align: center;
}

.team-odds-box .team-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1de1d1;
}

.odds-box {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    color: #fff;
    margin: 8px 0;
}

.odds-box span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}


.doubleheader-alert {
    margin-top: 10px;
    background: #222;
    color: #f9c20a;
    padding: 8px 12px;
    border-left: 4px solid #f9c20a;
    border-radius: 6px;
    font-weight: bold;
}

.matchup-img {
    width: 45%;
    display: inline-block;
    vertical-align: middle;
}
 
.GameInfoContainer {
    width: calc(100% - 5px);
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}
.matchup-img img {
    max-width: 75px;
    margin-bottom: 20px;
}
.GameInfoContainer img {
    max-width: 100px;
    margin-bottom: 15px;
}
.GameInfoContainer .GameHeader {
    font-size: 28px;
    font-weight: 600;
    /*font-style: italic; */
    text-transform: uppercase;
    margin-bottom: -10px;
    margin-top: -10px;
}
.GameInfoContainer .gametime {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: -10px;
}
.GameInfoContainer .gamecontent {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}
.PitcherHeader {
    font-size: 28px;
    font-weight: 600;
    margin-top: -10px;
}

.PitcherStats {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 8px;
    margin-top: 8px;
}

.PitcherStat {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    width: 12%;
}

.PitcherStat strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}
.GoalieHeader {
    font-size: 28px;
    font-weight: 600;
    margin-top: -10px;
}

.GoalieStats {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 8px;
    margin-top: 8px;
}

.GoalieStat {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    width: 12%;
}

.GoalieStat strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}
.odds-logo {
    height: 2vw;
    vertical-align: middle;
    margin-left: 6px;
    display: inline-block;
    margin-bottom: 0 !important;
}
.mlb-odds-scope-btn {
    margin: 0;
    padding: 0;
    background: url('../images/odds_scope_transparent.png') no-repeat center/contain;
    border: none;
    cursor: pointer;
    width: 20%;
    height: 50px;
    min-width: 0;
    vertical-align: middle;
}
.mlb-odds-scope-btn:hover { opacity:0.8; }

.nba-odds-scope-btn {
    margin: 0;
    padding: 0;
    background: url('../images/odds_scope_transparent.png') no-repeat center/contain;
    border: none;
    cursor: pointer;
    width: 20%;
    height: 50px;
    min-width: 0;
    vertical-align: middle;
}
.nba-odds-scope-btn:hover { opacity:0.8; }

.nhl-odds-scope-btn {
    margin: 0;
    padding: 0;
    background: url('../images/odds_scope_transparent.png') no-repeat center/contain;
    border: none;
    cursor: pointer;
    width: 20%;
    height: 50px;
    min-width: 0;
    vertical-align: middle;
}
.nhl-odds-scope-btn:hover { opacity:0.8; }

.epl-odds-scope-btn {
    margin: 0;
    padding: 0;
    background: url('../images/odds_scope_transparent.png') no-repeat center/contain;
    border: none;
    cursor: pointer;
    width: 20%;
    height: 50px;
    min-width: 0;
    vertical-align: middle;
}
.epl-odds-scope-btn:hover { opacity:0.8; }

.odds-scope-logo {
  height:30px;
  margin-right:8px;
}
/*for inside table data scope buttons. */
td button.mlb-odds-scope-btn {
    width: 60%;
}

@media (max-width: 767px) {
    .odds-logo {
        height: 36px;
        width: 75%;
        min-width: 75%;
        vertical-align: middle;
        margin-left: 6px;
        display: inline-block;
        margin-bottom: 0 !important;
    }
    .mlb-odds-scope-btn {
        margin: 0;
        padding: 0;
        background: url('../images/odds_scope_transparent.png') no-repeat center / contain;
        border: none;
        cursor: pointer;
        width: 75%;
        min-width: 75%;
        vertical-align: middle;
    }
    .nba-odds-scope-btn {
        margin: 0;
        padding: 0;
        background: url('../images/odds_scope_transparent.png') no-repeat center / contain;
        border: none;
        cursor: pointer;
        width: 75%;
        min-width: 75%;
        vertical-align: middle;
    }
    .nhl-odds-scope-btn {
        margin: 0;
        padding: 0;
        background: url('../images/odds_scope_transparent.png') no-repeat center / contain;
        border: none;
        cursor: pointer;
        width: 75%;
        min-width: 75%;
        vertical-align: middle;
    }
    .epl-odds-scope-btn {
        margin: 0;
        padding: 0;
        background: url('../images/odds_scope_transparent.png') no-repeat center / contain;
        border: none;
        cursor: pointer;
        width: 75%;
        min-width: 75%;
        vertical-align: middle;
    }
}

.odds-subtext {
    font-size: 0.8rem;
}
/*Matchup Header Phone formatting*/
@media (max-width: 767px) {
    .GameInfoContainer .GameHeader {
        font-size: 22px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: -10px;
        margin-top: -10px;
    }
    .GameInfoContainer .gametime {
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 5px;
        margin-top: -10px;
    }
    .GameInfoContainer {
        width: calc(100% - 5px);
    }
    .PitcherHeader {
        font-size: 18px;
        font-weight: 600;
        margin-top: -10px;
    }
    .PitcherStats {
        gap: 4px;
    }
    .PitcherStat {
        font-size: 12px;
        width: 32.5%;
    }
    .PitcherStat strong {
        font-size: 10px;
    }
    .GoalieHeader {
        font-size: 18px;
        font-weight: 600;
        margin-top: -10px;
    }
    .GoalieStats {
        gap: 4px;
    }
    .GoalieStat {
        font-size: 12px;
        width: 32.5%;
    }
    .GoalieStat strong {
        font-size: 10px;
    }
}
/* Compact MLB matchup header on small screens */
@media (max-width: 600px) {

    .matchup-card {
        padding: 12px;
    }
    .team-row {
        align-items: center;
        margin-bottom: 10px;
    }
    .team-row .team h3 {
        font-size: 1rem;
    }
    .team-row .vs {
        font-size: 1.2rem;
        margin: 4px 0;
    }
    .time-row strong {
        font-size: 0.7rem;
        color: #fff;
    }
    .time-row .time {
        font-size: 0.7rem;
    }
    .info-row {
        font-size: 0.8rem;
        text-align: center;
    }
    .score {
        font-size: 0.8rem;
    }
    .odds-row {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }
    .team-odds-box,
    .center-total-box {
        width: 100%;
        margin-bottom: 8px;
    }
    .odds-row.split {
        margin: 0px 0px;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .odds-box {
        padding: 8px 12px;
        font-size: 12px;
        margin: 8px;
    }
    .odds-box span,
    .odds-subtext {
        font-size: 10px;
    }
    .info-row {
        font-size: 0.8rem;
        text-align: center;
    }
}
/*Prediction section formatting*/
.prediction-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    font-style: normal;
}
.prediction-logo {
    max-width: 15%;
}
.prediction-team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Prediction summary grid */
.prediction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.prediction-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    color: #fff;
}

.prediction-item.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prediction-item.team .prediction-logo {
    max-width: 60px;
    margin-bottom: 4px;
}

.prediction-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}

.prediction-item .value {
    font-weight: 600;
}

@media (max-width: 600px) {
    .prediction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.matchup-notes-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    font-style: normal;
}
.matchup-notes {
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 2px;
}
.ai-bets-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    font-style: normal;
}
.ai-bet-records-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    font-style: uppercase;
}
.ai-bet {
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 2px;
}
/* AI bets grid */
.ai-bets-grid,
.ai-bet-records-grid,
.prediction-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ai-bet-item,
.ai-bet-record-item,
.prediction-record-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.ai-bet-label,
.ai-bet-record-label,
.prediction-record-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1de1d1;
    margin-bottom: 2px;
}

.ai-bet-value,
.ai-bet-record-value,
.prediction-record-item .value {
    font-weight: 600;
    color: white;
}

/* smaller slate rank text within record boxes */
.ai-bet-record-rank {
    display: block;
    font-size: 11px;
    color: #ccc;
    margin-top: 2px;
}

/* Matchup notes list */
.matchup-notes-list {
    list-style: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.matchup-note-item {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.modal-custom th {
    font-style: italic;
    font-size: 14px !important;
    text-transform: uppercase;
    background: #000 !important;
    color: #fff;
    padding: 10px !important;
}
.last-updated {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-style: italic;
    text-align: center;
    padding: 35px 15px 50px;
    color: #707070;
}
.GameLinks .slick-slide {
    height: auto;
}

.epl-scroll-top,
.mlb-scroll-top,
.nhl-scroll-top,
.nba-scroll-top,
.wnba-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #000;
    color: #1de1d1;
    border: 2px solid #1de1d1;
    border-radius: 20px;
    width: 120px;
    height: 40px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.epl-scroll-top:hover,
.mlb-scroll-top:hover,
.nhl-scroll-top:hover,
.nba-scroll-top:hover,
.wnba-scroll-top:hover {
    background: #1de1d1;
    color: #000;
}

/* Ensure matchup tables fit within the viewport on mobile */
@media (max-width: 767px) {
    .mlb-matchups-wrap .ranking-table,
    .nba-matchups-wrap .ranking-table {
        min-width: 0 !important;
    }

    .dt-mobile-select {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
        padding: 12px 20px;
        background: #000;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        font-style: italic;
        text-align: center;
        border: 2px solid #1de1d1;
        border-radius: 30px;
    }
}

/* Starting lineup indicator icon */
.nba-matchups-wrap .starter-check {
    color: #32cd32;
    margin-right: 4px;
}


/*Matchup Icons on the NBA Matchups Page. */ 
.arrow-cls-wrap i {
    font-size: 20px;
    font-weight: 700;
}

.arrow-cls-wrap .fa-snowflake {
  color: #00cfff; /* icy cyan */
  text-shadow: 0 0 6px rgba(0, 207, 255, 0.7);
}

.arrow-cls-wrap .fa-left-right {
  color: #aaaaaa;
}

.arrow-cls-wrap .fa-thumbs-up {
  color: #2ecc71; /* bright green */
  text-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.arrow-cls-wrap .fa-fire-alt {
  color: #ff4136; /* hot red */
  text-shadow: 0 0 6px rgba(255, 65, 54, 0.7);
}
