.sport-prediction-bg {
    background-image: url(../images/sport-predict/background/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    /* margin-top: 53px; */
    background-position: top center;
    padding-top: 13%;
    padding-bottom: 3rem;
}

.sport-prediction-board {
    background-image: url(../images/sport-predict/background/board.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    border: 3px solid #ee602a;
    padding: 2rem;
}

.sp-tabs-nav {
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0;
}

.sp-tabs-nav .nav-item {
    margin: 0;
    flex: 1;
}

.sp-tabs-nav .nav-link {
    border: 1px solid #ee602a;
    border-radius: 15px;
    background: transparent;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    padding: 15px 10px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.sp-tabs-nav .nav-link.active,
.sp-tabs-nav .nav-link:hover,
.sp-tabs-nav .nav-item.show .nav-link {
    color: #ffffff;
    border: 1px solid #ee602a;
    background: #ee602a;
    text-shadow: 1px 1px 4px #7b7b7b;
}

.sp-tabs-content .tab-pane {
    min-height: 1px;
}

.sp-content-wrap {
    margin-top: 1rem;
}

.sp-ongoing-content {
    background: url(../images/sport-predict/on-going/banner-on-going.jpg) center center no-repeat;
    width: 100%;
    height: 390px;
    position: relative;
    border-radius: 20px;
    border: 3px solid #ee602a;
    padding: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}



.sp-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 1rem;
}

.sp-banner-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 65%;
}

.sp-banner-prize {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    background: linear-gradient(180deg, rgba(238, 96, 42, 1) 0%, rgba(255, 173, 53, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.sp-banner-matchday {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: -20px;
}

.sp-banner-matchup {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 1rem;
}

.sp-banner-team-bar {
    border-radius: 8px;
    padding: 0;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sp-banner-team-name {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.sp-banner-team-circle.left {
    background: url(../images/sport-predict/on-going/left-team.png) center center no-repeat;
    width: 300px;
    height: 86px;
    text-align: right;
    background-size: 100%;
    margin-right: -35px;
    display: flex;
    justify-content: end;
    align-items: center;
}

.sp-banner-team-circle.right {
    background: url(../images/sport-predict/on-going/right-team.png) center center no-repeat;
    width: 300px;
    text-align: left;
    background-size: 100%;
    margin-left: -35px;
    height: 86px;
    display: flex;
    align-items: center;
}

.sp-banner-team-circle img {
    max-width: 70px;
}

.sp-banner-vs {
    font-size: 1.75rem;
    font-weight: 900;
    color: #f2c46d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.sp-banner-date {
    font-size: 1rem;
    color: #fff;
    margin-top: -15px;
    font-weight: 600;
}

.sp-banner-cta {
    margin-top: 1rem;
    padding: 12px 32px;
    border-radius: 15px;
    border: none;
    background: #ee602a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(238 96 42);
}

.sp-banner-cta:hover {
    background: #ee602a;
    box-shadow: 0 6px 16px rgb(229 142 110);
}

.sp-banner-right {
    flex: 1;
    margin-left: -10px;
}

.sp-banner-badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(180deg, #1a3a5c 0%, #0d2840 100%);
    border: 3px solid #f2c46d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sp-content-wrap h3 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
}

.sp-ongoing-content-matches {
    margin-top: 2rem;
}

.sp-ongoing-content-matches-time-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 1rem;
    max-width: 85%;
    margin: 0 auto;
}

.sp-ongoing-content-matches-time {
    background: url(../images/sport-predict/element/countdown01_1.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    width: 100%;
    height: 175px;
    display: flex;
    justify-content: space-evenly;
}

.sp-ongoing-content-matches-time span {
    color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

.sp-ongoing-content-matches-time-label {
    text-align: center;
    color: #fff;
    margin-top: 5px;
}

/* Ongoing: prediction match card (uses images/sport-predict/element/*) */
.sp-ongoing-prediction-match {
    margin-top: 2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.sp-pm-card {
    border-radius: 20px;
    padding: 1rem 1.25rem 1.5rem;
}

.sp-pm-banner {
    position: relative;
    text-align: center;
    margin-bottom: 0.5rem;
}

.sp-pm-banner-art {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sp-pm-banner-title {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: #4a3a2a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    pointer-events: none;
    white-space: nowrap;
}

.sp-pm-vsbar-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.sp-pm-vsbar-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sp-pm-vsbar-team {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.sp-pm-vsbar-team--left {
    left: 15%;
}

.sp-pm-vsbar-team--right {
    right: 15%;
}

.sp-pm-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sp-pm-shield {
    position: relative;
    flex: 1;
    max-width: 20%;
    aspect-ratio: 5 / 6;
}

.sp-pm-shield-frame {
    display: none;
}

.sp-pm-shield::before,
.sp-pm-shield::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(-1% 0%, 96% 0%, 100% 0%, 100% 66%, 50% 100%, 0% 66%, 0% 6%);
}

.sp-pm-shield::before {
    background: linear-gradient(145deg, #fe9b20 0%, #e76701 30%, #fd880e 60%, #fd7c02 80%, #ee602a 100%);
    z-index: 0;
}

.sp-pm-shield::after {
    background: #252525;
    transform: scale(0.91);
    z-index: 1;
}

.sp-pm-shield-inner {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 80%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
    z-index: 2;
}

.sp-pm-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-pm-country-name {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 2px 6px;
    background: #252525;
    border-radius: 3px;
    border: 3px solid #f0b139;
    white-space: nowrap;
    line-height: 1.4;
}

.sp-pm-scores {
    flex: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.35rem;
    background: #252525;
    padding: 10px 3rem;
    border-radius: 10px;
    max-width: 50%;
    box-shadow: 0px 3px 12px 1px #6d6d6d;
    border: 1px solid #ee602a;
}

.sp-pm-score-cell {
    width: clamp(82px, 12vw, 72px);
    height: clamp(134px, 16vw, 96px);
    background: url(../images/sport-predict/element/countdown02_2.png) center center no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-pm-score-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #f5f5f5;
    font-size: clamp(5rem, 6vw, 2.75rem);
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-align-last: center;
    padding: 0;
}

.sp-pm-score-select option {
    background: #2c2c2c;
    color: #f5f5f5;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.sp-pm-score-select:focus {
    outline: none;
}

.sp-pm-score-colon {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    color: #5c5345;
    line-height: 1;
    padding: 0 0.15rem;
}

.sp-pm-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sp-pm-action {
    border: none;
    cursor: pointer;
    width: 300px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    transition: transform 0.15s ease, filter 0.15s ease;
    background-color: transparent;
    color: #fff;
}

.sp-pm-action span {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.sp-pm-action--submit {
    background: linear-gradient(180deg, #f3631e 0%, #f7b925 100%);
    border: 1px solid #f3631e;
}

.sp-pm-action--reset {
    background: #151515;
    border: 1px solid #e56634;
}

.sp-pm-action--reset span {
    color: #fff;
}

.sp-pm-action:hover {
    filter: brightness(1.05);
}

.sp-pm-action:active {
    transform: scale(0.98);
}
/* MODAL */

.modal-dialog.modal-result {
    border: none;
}
.modal-result .modal-header {
    background: none;
    border: none;
    justify-content: end;
}
.modal-result .modal-content {
    background: none;
    border: none;
}

.header-sport {
    position: relative;
    align-self: center;
}

.header-sport h4 {
    bottom: 18px;
    color: #fff;
    text-align: center;
    margin: 0px auto;
    left: 0;
    right: 0;
    position: absolute;
}
.close span {
    color: #fff;
    text-shadow: 0 1px 0 #fff;
    opacity: 1;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
    display: block;
    line-height: 19px;
}

.close {
    opacity: 1;
    background: none;
    border: none;
}

.modal-close {
	position: absolute;
	right: 0;
	top: 0;
	color: #fff;
	opacity: 1;
	font-size: 50px;
	position: absolute;
	right: 0;
	z-index: 10;
}

.com-wrap ul {
    display: grid;
    flex-wrap: wrap;
    list-style: none;
    padding: 0px;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.com-wrap ul li a {
    border: 1px solid #ee602a;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    justify-content: space-evenly;
    position: relative;
    overflow: hidden;
    background: url(../images/sport-predict/element/result.png) no-repeat right center / 100%;
    background-color: #000;
    text-decoration: none;
    min-height: 162px;
}

.com-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: linear-gradient(to right, #d0f366 60%, transparent 100%);
    padding: 8px 12px;
    width: 60%;
}

.com-match-no {
    font-size: 15px;
    font-weight: 700;
    color: #05340b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.com-match-date {
    font-size: 15px;
    font-weight: 600;
    color: #05340b;
    letter-spacing: 0.03em;
}

.com-card-result {
    padding: 8px 12px;
    font-size: 24px;
    font-weight: 800;
    color: #ee602a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 60%;
}
/* Record Table */
.record-content {
    border: 3px solid #ee602a;
    padding: 15px;
    border-radius: 10px;
}

/* Shared table theme */
.record-table thead tr th,
.betting-history-table thead tr th {
    background: #ff7540;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    border: 1px solid #ee602a;
    padding: 10px 12px;
    white-space: nowrap;
}

.record-table tbody tr td,
.betting-history-table tbody tr td {
    background: #000;
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 9px 12px;
    vertical-align: middle;
    border: 1px solid #ee602a;
}

.record-table tbody tr:nth-child(even) td,
.betting-history-table tbody tr:nth-child(even) td {
    background: #000;
}

.record-table,
.betting-history-table {
    border-color: #2a3f6e;
}

/* Betting history scroll container â€” shows 10 rows then scrolls */
.betting-history-scroll {
    max-height: calc(10 * 41px);
    overflow: hidden;
    overflow-y: auto;
    /* border: 1px solid #ee602a; */
}

.betting-history-scroll::-webkit-scrollbar {
    width: 6px;
}

.betting-history-scroll::-webkit-scrollbar-track {
    background: #000;
}

.betting-history-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ee602a 0%, #ee602a 100%);
    border-radius: 3px;
}

.betting-history-table {
    margin-bottom: 0;
    border: none;
}

.betting-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.winner-modal{
    max-width: 800px;
    background: #000000 url(../images/sport-predict/Winner.png) no-repeat center top / 100%;
    min-height: 700px;
    border-radius: 10px;
}
.winner-modal .close{
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
}

/* Winner modal inner content */
.winner-content {
    /* background: transparent !important; */
    border: none !important;
    padding: 24px 20px 20px;
    text-align: center;
}

.winner-header {
    margin-bottom: 8px;
    margin-top: 4rem;
}

.winner-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f5c842;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.winner-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}

.winner-prize {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
    margin-bottom: 12px;
}

/* VS Row */
.winner-vs-row {
    margin-bottom: 20px;
}

.winner-match-select {
    width: 50%;
    padding: 8px 36px 8px 20px;
    background: #000;
    color: #fff;
    border: 1px solid #ee602a;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23a88663' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    outline: none;
    box-shadow: 0 3px 5px rgba(107, 123, 168, .25);
    text-align: center;
    text-align-last: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.winner-match-select:focus {
    border-color: #c4a05a;
    box-shadow: 0 0 0 3px rgba(168, 134, 99, 0.2);
}

.winner-match-select option {
    background: #ffffff;
    color: #ee602a;
    text-align: left;
}

/* Winner Table */
.winner-table {
    display: flex;
    gap: 10px;
}

.winner-table-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.winner-table-head {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.winner-table-row {
    height: 46px;
    background: rgba(200, 200, 200, 0.25);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Swiper: ongoing countdown + prediction match */
.sp-ongoing-swiper {
    position: relative;
    margin-top: 1rem;
    padding-bottom: 3rem;
}

.sp-ongoing-slide-inner {
    padding: 0 0.25rem;
}

.sp-ongoing-swiper .swiper-slide {
    height: auto;
}

.sp-ongoing-swiper-pagination {
    bottom: 0 !important;
}

.sp-ongoing-swiper-pagination .swiper-pagination-bullet {
    background: #d2a06c;
    opacity: 0.45;
}

.sp-ongoing-swiper-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(180deg, #ee602a 0%, #ee602a 100%);
    opacity: 1;
}

.sp-ongoing-swiper-prev,
.sp-ongoing-swiper-next {
    color: #d9b28d !important;
    width: 50px!important;
    height: 50px!important;
}

.sp-ongoing-swiper-prev::after,
.sp-ongoing-swiper-next::after {
    font-size: 18px!important;
    background: #000;
    width: 40px;
    border-radius: 50%;
    border: 1px solid #ee602a;
    padding: 5px;
    font-weight: bold;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    color: #fff;
    text-shadow: 1px 1px 1px #00000066;
}
.winner-history-title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, rgba(238, 96, 42, 1) 0%, rgba(255, 173, 53, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* TNC Modal */
.tnc-content {
    border: 3px solid #ee602a;
    padding: 20px 25px;
    border-radius: 10px;
    background: #000;
    max-height: 70vh;
    overflow-y: auto;
}

.tnc-content::-webkit-scrollbar {
    width: 6px;
}

.tnc-content::-webkit-scrollbar-track {
    background: #000;
}

.tnc-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ee602a 0%, #ee602a 100%);
    border-radius: 3px;
}

.tnc-detail span {
    font-weight: 700;
    font-size: 15px;
    color: #ee602a;
    padding: 12px 0 6px;
    display: block;
}

.tnc-detail ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.tnc-detail ol li {
    font-size: 13px;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 6px;
}

.tnc-detail ol li:last-child {
    margin-bottom: 0;
}
#modal-tnc .close{
    right: 10px;
    top: 10px;
}
#modal-tnc .close span {
    color: #fff;
    text-shadow: 0 1px 0 #fff;
    opacity: 1;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
}