/* time machine */
#timeMachine .modal-dialog {
    max-width: 800px;
}
#timeMachine .modal-header {
    background: url(../../images/tab-bg.png) no-repeat;
    background-size: cover;
}
#timeMachine .modal-body {
    background: url(../../images/bg2.png) no-repeat;
    background-size: cover;
}
#timeMachine .header-icons {
    display: flex;
    font-weight: 500;
}
/* .icon-tm .hx-icon {
    background-color: #cf552c;
    border-radius: 50%;
} */
#timeMachine .header-icons .btn-league-info {
    cursor: pointer;
    color: #FFFFFF80;
    margin-right: 8px;
}
.time-machine-wrapper {
    border-radius: 12px;
    padding: 24px 10px 10px 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.time-machine-wrapper .main-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 16px;
    margin-bottom: 24px;
}
.time-machine-wrapper .odds-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.time-machine-wrapper .odds-header {
    text-align: center;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}
.time-machine-wrapper .odds-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffffcc;
    border: 1px solid rgba(56, 92, 182, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
[class*="color"] .time-machine-wrapper .odds-box.highlighted:hover,
.time-machine-wrapper .odds-box.highlighted:hover {
    background-color: #F4D1C5;
}
[class*="color"] .time-machine-wrapper .odds-box.highlighted.up:hover,
.time-machine-wrapper .odds-box.highlighted.up {
    border: 1px solid #00C6264D;
}
[class*="color"] .time-machine-wrapper .odds-box.highlighted.down:hover,
.time-machine-wrapper .odds-box.highlighted.down {
    border: 1px solid #D9B8B2;
}
.time-machine-wrapper .odds-box.active {
    background: #0000001A;
    border: 1px solid #0000001F;
}
.time-machine-wrapper .odds-box:hover {
    background-color: #fff;
    border: 1px solid rgba(38, 79, 181, 0.8);
    transform: translateY(-2px);
}
.time-machine-wrapper .odds-label {
    font-size: 13px;
    color: #000;
}
.time-machine-wrapper .odds-label span {
    color: #00000080;
}
.time-machine-wrapper .odds-value {
    font-size: 16px;
    font-weight: 700;
}
.time-machine-wrapper .odds-value.text-red {
    color: #b53f39;
}
.time-machine-wrapper .meter-container {
    position: relative;
    width: 250px;
    height: 125px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 16px 16px 16px;
}
.time-machine-wrapper .meter-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.time-machine-wrapper .meter-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.time-machine-wrapper #ringGradient{
    box-shadow: 0 0 16px #000;
}
.time-machine-wrapper .meter-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.time-machine-wrapper .meter-mark {
    position: absolute;
    font-size: 12px;
    color: #000;
    font-weight: 700;
}
.time-machine-wrapper .mark-0 {
    left: -12px;
    bottom: 0px;
}
.time-machine-wrapper .mark-45 {
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
}
.time-machine-wrapper .mark-90 {
    right: -16px;
    bottom: 0px;
}
.time-machine-wrapper .bubble-pivot {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 88.5px;
    transform-origin: bottom center;
    transition: transform 0.2s ease-out;
    z-index: 10;
}
.time-machine-wrapper .time-bubble {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #7b2cbf, #e53935);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}
.time-machine-wrapper .needle-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 73px;
    transform-origin: bottom center;
    transform: rotate(-90deg);
    transition: transform 0.2s ease-out;
    z-index: 5;
}
.time-machine-wrapper .needle {
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 4px;
    height: 100%;
    background-color: #ff9800;
    border-radius: 2px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.time-machine-wrapper .pivot {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #ff9800;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.time-machine-wrapper .slider-section {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 20px;
}
.time-machine-wrapper .slider-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.time-machine-wrapper .marker-min-time {
    position: absolute;
    left: 6.66%;
    top: 100%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #fff;
    background-color: #8b939b;
    font-weight: 600;
    padding: 0 10px;
    border-radius: 3px;
    pointer-events: none;
}
.time-machine-wrapper .marker-min-time::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-bottom: 5px solid #8b939b;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}
.time-machine-wrapper .control-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.time-machine-wrapper .control-btn:hover:not(:disabled) {
    background-color: #fff;
    border-color: rgba(43, 123, 176, 0.745);
    color: #1F69AA;
}
.time-machine-wrapper .control-btn:active:not(:disabled) {
    transform: scale(0.95);
}
.time-machine-wrapper .control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #e1e4e8;
}
.time-machine-wrapper input[type="range"] {
    -webkit-appearance: none;
    flex-grow: 1;
    height: 10px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);

    background: linear-gradient(to right,
            #cbd5e1 0%,
            #cbd5e1 var(--min-progress, 6.66%),
            #00ee6e var(--min-progress, 6.66%),
            #3d80c9 50%,
            #722df2 100%);
}
.time-machine-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d1d9e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}
.time-machine-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.time-machine-wrapper .quick-buttons {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    width: 100%;
}
.time-machine-wrapper .quick-btn,
.time-machine-wrapper .quick-btn:hover{
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #000000;
}
.time-machine-wrapper .quick-btn.active {
    background-color: #1F69AA;
    color: #fff;
    border-color: #1F69AA;
    box-shadow: 0 4px 10px rgba(56, 92, 182, 0.2);
}
[class*="color"] #timeMachine .modal-body {
    background: #ffffff;
}
[class*="color"] .time-machine-wrapper .odds-box.active {
    background-color: #00000033;
}

.color1 .time-machine-wrapper .quick-btn.active {
    background-color: #00967B;
    border-color: #00967B;
}
.color1 .time-machine-wrapper .odds-box:hover,
.color1 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    border: 1px solid #00967B;
}
.color1 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    color: #00967B;
}
.color1 #timeMachine .modal-header {
    background: url(../../images/color1/tab-bg.png) no-repeat !important;
    background-size: cover !important;
}
[class*="color"] .time-machine-wrapper .odds-box {
    background-color: #00000008;
}
.color1 .time-machine-wrapper .odds-box:hover {
    background-color: #00a18315;
}

.color2 .time-machine-wrapper .quick-btn.active {
    background-color: #2789af;
    border-color: #2789af;
}
.color2 .time-machine-wrapper .odds-box:hover,
.color2 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    border: 1px solid #2789af;
}
.color2 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    color: #2789af;
}
.color2 #timeMachine .modal-header {
    background: url(../../images/color2/tab-bg.png) no-repeat !important;
    background-size: cover !important;
}
.color2 .time-machine-wrapper .odds-box:hover {
    background-color: #2789af15;
}

.color3 .time-machine-wrapper .quick-btn.active {
    background-color: #51618e;
    border-color: #51618e;
}
.color3 .time-machine-wrapper .odds-box:hover,
.color3 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    border: 1px solid #51618e;
}
.color3 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    color: #51618e;
}
.color3 #timeMachine .modal-header {
    background: url(../../images/color3/tab-bg.png) no-repeat !important;
    background-size: cover !important;
}
.color3 .time-machine-wrapper .odds-box:hover {
    background-color: #51618e15;
}

.color4 .time-machine-wrapper .quick-btn.active {
    background-color: #2E78A2;
    border-color: #2E78A2;
}
.color4 .time-machine-wrapper .odds-box:hover,
.color4 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    border: 1px solid #2E78A2
}
.color4 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    color: #2E78A2;
}
.color4 #timeMachine .modal-header {
    background: url(../../images/color4/tab-bg.png) no-repeat !important;
    background-size: cover !important;
}
.color4 .time-machine-wrapper .odds-box:hover {
    background-color: #2E78A215;
}

.color5 .time-machine-wrapper .odds-box:hover,
.color5 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    border: 1px solid #111116;
}
.color5 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    color: #111116;
}
.color5 #timeMachine .modal-header {
    background-color: #5a5e70 !important;
}
.color5 .time-machine-wrapper .odds-box {
    background-color: #2b2e39;
    border: 1px solid #4e5469;
}
.color5 .time-machine-wrapper .odds-box:hover {
    background-color: #00000015;
    border: 1px solid #767fa1;
}
.color5 #timeMachine .modal-body {
    background: #2b2e39;
}
.color5 .time-machine-wrapper,
.color5 .time-machine-wrapper .odds-label,
.color5 .time-machine-wrapper .odds-header,
.color5 .time-machine-wrapper .meter-mark,
.color5 .time-machine-wrapper .quick-btn, 
.color5 .time-machine-wrapper .quick-btn:hover {
    color: #FFFFFF;
}
.color5 .time-machine-wrapper .odds-label span {
    color: #FFFFFF80;
}
.color5 .time-machine-wrapper .quick-btn, 
.color5 .time-machine-wrapper .quick-btn:hover {
    background-color: #2b2e39;
    border-color: #4e5469;
}
.color5 .time-machine-wrapper .quick-btn.active {
    background-color: #111116;
    border-color: #111116;
}
.color5 .time-machine-wrapper .control-btn {
    background-color: #2b2e39;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.color5 .time-machine-wrapper .control-btn:hover:not(:disabled) {
    background-color: #2b2e39;
    border-color: #b2b2b2a7;
    color: #ffffff;
}
.color5 .time-machine-wrapper .odds-value.text-red {
    color: #FF6148;
}
.color5 .time-machine-wrapper .odds-box.highlighted.up {
    border: 1px solid #58775F;   
    background-color: #555B4C;
}
.color5 .time-machine-wrapper .odds-box.highlighted.down {
    border: 1px solid #755954;
    background-color: #4D2B26;
}
.color5 .time-machine-wrapper .odds-box.highlighted.down:hover {
    border: 1px solid #755954;
}

.modal-backdrop {
    width: 100%;
    height: 100%;
}

.time-machine-wrapper .quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #e1e4e8;
}