/* 开奖球效果：0=默认渐变（页面原 CSS），1~4=xiaoqiu 图片球 */

/* 开奖号码行：用 text-align + inline-flex 保证整行居中 */
.numbers-container {
    text-align: center !important;
}
#numbersWrapper,
.numbers-wrapper {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto !important;
}
#numbersWrapper::-webkit-scrollbar,
.numbers-wrapper::-webkit-scrollbar {
    display: none;
}
.numbers-row {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: max-content !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    vertical-align: top;
}
.numbers-row > div {
    flex: 0 0 auto !important;
    width: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.numbers-row > .plus-sign {
    width: auto !important;
    min-width: 16px !important;
    /* align-self: center !important; */
    margin: 0 5px !important;
    padding-top: 10px !important; /* 与球垂直对齐 */
    flex-direction: row !important;
}
.history-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}
.history-table th,
.history-table td {
    text-align: center !important;
}
.history-table th:first-child,
.history-table td:first-child {
    text-align: left !important;
}
.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    text-align: center !important;
}

/* 图片球样式 */
body.ball-style-1 .number-ball,
body.ball-style-2 .number-ball,
body.ball-style-3 .number-ball,
body.ball-style-4 .number-ball {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
}

body.ball-style-1 .number-ball .ball-inner,
body.ball-style-2 .number-ball .ball-inner,
body.ball-style-3 .number-ball .ball-inner,
body.ball-style-4 .number-ball .ball-inner {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-right: 5px;
    padding-bottom: 6px;
}

body.ball-style-1 .number-ball .small-ellipse,
body.ball-style-2 .number-ball .small-ellipse,
body.ball-style-3 .number-ball .small-ellipse,
body.ball-style-4 .number-ball .small-ellipse {
    display: none !important;
}

body.ball-style-1 .number-ball.red { background-image: url(/static/xiaoqiu/hong1.png) !important; }
body.ball-style-1 .number-ball.blue { background-image: url(/static/xiaoqiu/lan1.png) !important; }
body.ball-style-1 .number-ball.green { background-image: url(/static/xiaoqiu/lv1.png) !important; }
body.ball-style-1 .number-ball.gray { background-image: none !important; background: radial-gradient(circle at 30% 30%, #ccc 0%, #999 70%, #666 100%) !important; }

body.ball-style-2 .number-ball.red { background-image: url(/static/xiaoqiu/hong2.png) !important; }
body.ball-style-2 .number-ball.blue { background-image: url(/static/xiaoqiu/lan2.png) !important; }
body.ball-style-2 .number-ball.green { background-image: url(/static/xiaoqiu/lv2.png) !important; }
body.ball-style-2 .number-ball.gray { background-image: none !important; background: radial-gradient(circle at 30% 30%, #ccc 0%, #999 70%, #666 100%) !important; }

body.ball-style-3 .number-ball.red { background-image: url(/static/xiaoqiu/hong3.png) !important; }
body.ball-style-3 .number-ball.blue { background-image: url(/static/xiaoqiu/lan3.png) !important; }
body.ball-style-3 .number-ball.green { background-image: url(/static/xiaoqiu/lv3.png) !important; }
body.ball-style-3 .number-ball.gray { background-image: none !important; background: radial-gradient(circle at 30% 30%, #ccc 0%, #999 70%, #666 100%) !important; }

body.ball-style-4 .number-ball.red { background-image: url(/static/xiaoqiu/hong4.png) !important; }
body.ball-style-4 .number-ball.blue { background-image: url(/static/xiaoqiu/lan4.png) !important; }
body.ball-style-4 .number-ball.green { background-image: url(/static/xiaoqiu/lv4.png) !important; }
body.ball-style-4 .number-ball.gray { background-image: none !important; background: radial-gradient(circle at 30% 30%, #ccc 0%, #999 70%, #666 100%) !important; }

/* 历史小圆球 */
body.ball-style-1 .history-number-ball,
body.ball-style-2 .history-number-ball,
body.ball-style-3 .history-number-ball,
body.ball-style-4 .history-number-ball {
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    color: #111 !important;
    border: none !important;
    box-shadow: none !important;
    padding-right: 3px;
    padding-bottom: 4px;
}

body.ball-style-1 .history-number-ball.red { background-image: url(/static/xiaoqiu/hong1.png) !important; }
body.ball-style-1 .history-number-ball.blue { background-image: url(/static/xiaoqiu/lan1.png) !important; }
body.ball-style-1 .history-number-ball.green { background-image: url(/static/xiaoqiu/lv1.png) !important; }
body.ball-style-1 .history-number-ball.gray { background-image: none !important; background: #ccc !important; }

body.ball-style-2 .history-number-ball.red { background-image: url(/static/xiaoqiu/hong2.png) !important; }
body.ball-style-2 .history-number-ball.blue { background-image: url(/static/xiaoqiu/lan2.png) !important; }
body.ball-style-2 .history-number-ball.green { background-image: url(/static/xiaoqiu/lv2.png) !important; }
body.ball-style-2 .history-number-ball.gray { background-image: none !important; background: #ccc !important; }

body.ball-style-3 .history-number-ball.red { background-image: url(/static/xiaoqiu/hong3.png) !important; }
body.ball-style-3 .history-number-ball.blue { background-image: url(/static/xiaoqiu/lan3.png) !important; }
body.ball-style-3 .history-number-ball.green { background-image: url(/static/xiaoqiu/lv3.png) !important; }
body.ball-style-3 .history-number-ball.gray { background-image: none !important; background: #ccc !important; }

body.ball-style-4 .history-number-ball.red { background-image: url(/static/xiaoqiu/hong4.png) !important; }
body.ball-style-4 .history-number-ball.blue { background-image: url(/static/xiaoqiu/lan4.png) !important; }
body.ball-style-4 .history-number-ball.green { background-image: url(/static/xiaoqiu/lv4.png) !important; }
body.ball-style-4 .history-number-ball.gray { background-image: none !important; background: #ccc !important; }

@media (max-width: 480px) {
    .numbers-row {
        gap: 2px !important;
    }
    .numbers-row > div {
        width: 42px !important;
    }
    .number-ball {
        width: 40px !important;
        height: 40px !important;
    }
    .plus-sign {
        margin: 0 1px !important;
        font-size: 16px !important;
        padding-top: 8px !important;
    }
    .lottery-info {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
