/* 0149.com 开奖实时区：展示参考原 am/hk/kl8 与 amkl8hk iframe。 */
.lottery-compact {
    width: 100%;
    height: 45px;
    overflow: hidden;
    background: #fff;
    color: #333;
    font-family: Tahoma, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.lottery-compact__disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    color: #777;
    background: #f5f5f5;
    font-size: 14px;
}

.lottery-compact table {
    width: 100%;
    height: 45px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

.lottery-compact td {
    padding: 0;
    border: 0;
    text-align: center;
    vertical-align: middle;
}

.lottery-compact__meta {
    width: 20%;
    line-height: 20px;
    white-space: nowrap;
}

.lottery-compact__history {
    color: #f00;
    background: #ff0;
    text-decoration: none;
}

.lottery-compact__ball-cell {
    width: 10.57%;
}

.lottery-compact__ball {
    width: 100%;
    margin: auto;
    border: 1px solid #ddd;
    border-right: 0;
    box-sizing: border-box;
    text-align: center;
    background: #999;
}

.lottery-compact__ball-cell--end .lottery-compact__ball {
    border-right: 1px solid #ddd;
}

.lottery-compact__number {
    height: 19px;
    color: #fff;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 19px;
}

.lottery-compact__zodiac {
    height: 19px;
    color: #333;
    background: #fff;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 19px;
}

.lottery-compact__refresh-cell {
    width: 6%;
    padding: 0 !important;
}

.lottery-compact__refresh {
    display: inline;
    padding: 0;
    border: 0;
    color: #f30;
    background: #ff0;
    font: bold 15px/17px Tahoma, sans-serif;
    cursor: pointer;
}

.lottery-realtime-list {
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #fff;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, 'Helvetica Neue', sans-serif;
    font-weight: 400;
    text-align: left;
}

.lottery-realtime-list .new-KJ-TabBox-box {
    height: 130px;
    padding: 8px;
    border: 0;
    box-sizing: border-box;
    color: #333;
    background: #fff;
    font-size: 16px;
}

.lottery-realtime-list .new-KJ-TabBox-box + .new-KJ-TabBox-box {
    border-top: 1px dashed #ccc;
}

.lottery-realtime-list .new-KJ-TabBox-box a {
    text-decoration: none;
}

.lottery-realtime-list .kj-font-red {
    color: #f00 !important;
}

.lottery-realtime-list .new-KJ-TabBox-box-tit {
    display: flex;
    align-items: center;
    height: 17px;
    line-height: 17px;
    font-size: 17px;
    white-space: nowrap;
}

.lottery-realtime-list .new-KJ-TabBox-box-tit-m {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.lottery-realtime-list .new-KJ-TabBox-box-tit-r a {
    color: #f00;
}

.lottery-realtime-list .new-KJ-TabBox-box-con {
    display: flex;
    margin: 8px 0;
}

.lottery-realtime-list .kj-ball {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 61px;
    margin-right: 6px;
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
    background: #999;
    text-align: center;
}

.lottery-realtime-list .kj-ball:last-child {
    margin-right: 0;
}

.lottery-realtime-list .kj-ball:nth-last-child(3) {
    margin-right: 6px;
}

.lottery-realtime-list .kj-ball h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 24px;
}

.lottery-realtime-list .kj-ball .whsx {
    display: inline-block;
    height: 19px;
    margin-top: 6px;
    padding: 0 6px;
    border-radius: 2px;
    color: #333;
    background: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 19px;
}

.lottery-realtime-list .kj-add {
    display: flex;
    align-items: center;
    margin-right: 8px;
    font-size: 32px;
    font-weight: bold;
}

.lottery-realtime-list .new-KJ-TabBox-box-foot {
    display: flex;
    align-items: center;
    font-size: 16px;
    white-space: nowrap;
}

.lottery-realtime-list .new-KJ-TabBox-box-foot-l {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx {
    display: inline-block;
    width: 40px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #f90;
    font: inherit;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx:disabled {
    opacity: .72;
}

.lottery-ball--red {
    background-color: #e71607 !important;
}

.lottery-ball--blue {
    background-color: #2389e9 !important;
}

.lottery-ball--green {
    background-color: #1fb61d !important;
}

.lottery-ball--gray {
    background-color: #999 !important;
}

@media screen and (max-width: 650px) {
    .lottery-realtime-list .new-KJ-TabBox-box {
        font-size: 14px;
    }

    .lottery-realtime-list .new-KJ-TabBox-box-tit {
        font-size: 16px;
    }

    .lottery-realtime-list .kj-ball,
    .lottery-realtime-list .kj-ball:nth-last-child(3) {
        margin-right: 4px;
    }

    .lottery-realtime-list .kj-ball h2 {
        font-size: 24px;
    }

    .lottery-realtime-list .kj-ball .whsx {
        margin-top: 4px;
        padding: 0 2px;
        font-size: 20px;
    }

    .lottery-realtime-list .kj-add {
        margin-right: 4px;
        font-size: 24px;
    }

    .lottery-realtime-list .new-KJ-TabBox-box-foot {
        font-size: 15px;
    }
}

@media screen and (max-width: 450px) {
    .lottery-realtime-list .kj-lotto-tit2 > span:first-child {
        display: none;
    }
}

/* Navigation v2: independent responsive cards */
.lottery-realtime-list{display:grid;gap:12px;height:auto;overflow:visible;background:transparent;margin-bottom:18px;color:#334155;}
.lottery-realtime-list .new-KJ-TabBox-box,.lottery-realtime-list .new-KJ-TabBox-box + .new-KJ-TabBox-box{height:auto;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(31,57,104,.045);min-width:0;}
.lottery-realtime-list .new-KJ-TabBox-box-tit{height:auto;min-height:30px;line-height:1.4;font-size:14px;justify-content:space-between;gap:6px;}
.lottery-realtime-list .new-KJ-TabBox-box-tit-l{display:flex;align-items:center;gap:7px;min-width:0;}
.lottery-region{background:#eaf2ff;color:#2563eb;border-radius:7px;padding:5px 8px;font-size:14px;white-space:nowrap;}
.lottery-issue{color:#64748b;font-size:13px;white-space:nowrap;}
.lottery-realtime-list .kj-font-red{color:#334155!important;font-weight:700;}
.lottery-realtime-list .new-KJ-TabBox-box-tit-r a{color:#64748b;font-size:12px;white-space:nowrap;}
.lottery-realtime-list .new-KJ-TabBox-box-tit-r a::after{content:' ›';color:#94a3b8;}
.lottery-realtime-list .new-KJ-TabBox-box-con{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 12px minmax(0,1fr);gap:5px;align-items:start;margin:12px 0 10px;padding-top:12px;border-top:1px solid #edf0f5;}
.lottery-realtime-list .kj-ball,.lottery-realtime-list .kj-ball:nth-last-child(3){--ball:#94a3b8;display:flex;gap:5px;height:auto;min-width:0;margin:0;background:transparent!important;border-radius:0;}
.lottery-realtime-list .kj-ball.lottery-ball--red{--ball:#ed4444;}
.lottery-realtime-list .kj-ball.lottery-ball--blue{--ball:#2684e8;}
.lottery-realtime-list .kj-ball.lottery-ball--green{--ball:#16a465;}
.lottery-realtime-list .kj-ball h2{display:flex;align-items:center;justify-content:center;width:100%;max-width:58px;aspect-ratio:1;border-radius:50%;background:var(--ball);color:#fff;font-size:clamp(17px,5vw,28px);line-height:1;font-weight:800;font-variant-numeric:tabular-nums;box-shadow:inset 0 -3px 0 rgba(0,0,0,.07);}
.lottery-realtime-list .kj-ball .whsx{height:auto;margin:0;padding:0;background:transparent;color:#334155;font-size:15px;line-height:1.5;font-weight:600;}
.lottery-realtime-list .kj-add{justify-content:center;align-self:start;aspect-ratio:auto;height:clamp(26px,9vw,58px);margin:0;color:#94a3b8;font-size:18px;}
.lottery-next-panel{background:#f5f8fc;border-radius:10px;padding:9px 10px;}
.lottery-countdown-row{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#64748b;font-size:12px;margin-bottom:5px;}
.lottery-countdown-row strong{font-size:19px;line-height:1.2;color:#2563eb;font-variant-numeric:tabular-nums;letter-spacing:.3px;}
.lottery-countdown-row strong:empty::after{content:'--:--:--';}
.lottery-realtime-list .new-KJ-TabBox-box-foot{font-size:12px;white-space:normal;gap:6px;color:#64748b;}
.lottery-realtime-list .new-KJ-TabBox-box-foot-l{overflow:visible;overflow-wrap:anywhere;}
.lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx{width:auto;height:auto;padding:4px 7px;border-radius:6px;background:#eaf2ff;color:#2563eb;line-height:1.3;font-size:12px;white-space:nowrap;}
.lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx:hover{background:#dceaff;}
@media(max-width:355px){.lottery-realtime-list .new-KJ-TabBox-box,.lottery-realtime-list .new-KJ-TabBox-box + .new-KJ-TabBox-box{padding:10px;}.lottery-realtime-list .new-KJ-TabBox-box-con{gap:3px;grid-template-columns:repeat(6,minmax(0,1fr)) 9px minmax(0,1fr);}.lottery-region{font-size:12px;padding:4px 5px;}.lottery-issue{font-size:12px;}}

/* V3: top section, outlined balls and independent cards */
.page .notice{background:#eaf2ff;border-color:#dce8fa;padding:12px 14px;border-radius:14px;gap:12px;}
.page .notice-content strong{display:block;font-size:13px;margin-bottom:2px;}
.page .header{padding:27px 0 22px;}
.page .header h1{color:#172d4b;font-size:clamp(23px,5.5vw,32px);letter-spacing:.5px;}
.header-subtitle{margin:8px 0 0;color:#75869c;font-size:12px;letter-spacing:1px;}
.page .header-mark{width:42px;height:4px;margin-top:12px;}
#lottery-realtime-list{display:grid;gap:12px;background:transparent;border:0;box-shadow:none;overflow:visible;}
#lottery-realtime-list .new-KJ-TabBox-box{padding:clamp(9px,2.8vw,16px);border:1px solid #dfe8f3;border-radius:17px;box-shadow:0 4px 18px #244b8010;}
#lottery-realtime-list .lottery-region{background:transparent;color:#203753;font-size:clamp(13px,3.5vw,17px);padding:0 0 0 8px;border-left:4px solid #397feb;border-radius:2px;font-weight:800;}
#lottery-realtime-list .lottery-issue{background:#edf4ff;border-radius:6px;padding:4px 6px;color:#3479e5;font-size:12px;}
#lottery-realtime-list .lottery-issue .kj-font-red{color:#3479e5!important;}
#lottery-realtime-list .new-KJ-TabBox-box-con{border:0;padding:0;margin:16px 0 12px;gap:clamp(3px,1vw,7px);}
#lottery-realtime-list .kj-ball h2{box-sizing:border-box;max-width:60px;border:2px solid var(--ball);background:color-mix(in srgb,var(--ball) 9%,white);color:var(--ball);box-shadow:none;font-size:clamp(15px,4.7vw,29px);}
#lottery-realtime-list .kj-ball .whsx{font-size:clamp(12px,3.5vw,16px);}
#lottery-realtime-list .ball-position{font-size:10px;color:#8796aa;line-height:1.2;}
#lottery-realtime-list .lottery-next-panel{background:#f4f7fc;padding:10px;border:1px solid #edf2f8;}
#lottery-realtime-list .lottery-countdown-row{margin-bottom:8px;}
#lottery-realtime-list .lottery-countdown-row strong{padding:4px 8px;border-radius:6px;background:#e3edff;font-size:clamp(16px,4vw,21px);letter-spacing:1px;}
#lottery-realtime-list .new-KJ-TabBox-box-foot{border-top:1px solid #e2eaf4;padding-top:8px;}
#lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx{background:transparent;color:#3479e5;}
@media(max-width:355px){#lottery-realtime-list .new-KJ-TabBox-box-tit-l{gap:4px;}#lottery-realtime-list .lottery-issue{padding:3px;font-size:11px;}#lottery-realtime-list .new-KJ-TabBox-box-tit-r a{font-size:11px;}}

/* V6 compact layout and double fixed top bars */
.page{padding-top:calc(102px + env(safe-area-inset-top,0px));}
body.notice-closed .page{padding-top:calc(56px + env(safe-area-inset-top,0px));}
.page .tech-header{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:110;width:min(100%,520px);height:calc(44px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 12px 0;display:flex;align-items:center;gap:9px;background:#f1f5fc;border-bottom:1px solid #dce7f5;box-shadow:0 2px 10px #2037530d;}
.page .tech-header h1{display:flex;align-items:center;justify-content:center;gap:4px;font-size:clamp(17px,5vw,24px);line-height:1;white-space:nowrap;letter-spacing:0;color:#172d4b;}
.tech-header h1 svg{width:23px;height:23px;color:#2563eb;flex:none;margin-right:2px;}
.tech-header .brand-number{color:#2563eb;}
.tech-line{flex:1;min-width:4px;height:1px;background:#a8c4ef;}
.page .notice{position:fixed;top:calc(46px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:105;width:min(calc(100% - 36px),484px);min-height:38px;padding:8px 10px;gap:8px;border-radius:10px;margin:0;background:rgba(234,242,255,.97);border:1px solid #dce8fa;box-shadow:0 5px 18px rgba(55,101,170,.08);backdrop-filter:saturate(180%) blur(8px);-webkit-backdrop-filter:saturate(180%) blur(8px);}
.page .notice-content{font-size:12px;line-height:1.35;}
.page .notice-content strong{display:inline;font-size:12px;margin:0 5px 0 0;}
.page .notice-icon{width:16px;height:16px;}
.page .notice-close{width:24px;height:24px;font-size:20px;}
body.notice-closed .page .notice{display:none !important;}
#lottery-realtime-list{gap:0;background:white;border:1px solid #dfe8f3;border-radius:12px;overflow:hidden;margin-bottom:10px;}
#lottery-realtime-list .new-KJ-TabBox-box{padding:7px 8px;border:0;border-radius:0;box-shadow:none;}
#lottery-realtime-list .new-KJ-TabBox-box + .new-KJ-TabBox-box{border-top:1px solid #e2e8f0;}
#lottery-realtime-list .new-KJ-TabBox-box-tit{min-height:22px;gap:4px;}
#lottery-realtime-list .new-KJ-TabBox-box-tit-l{gap:4px;}
#lottery-realtime-list .lottery-region{font-size:13px;border-left-width:3px;padding-left:4px;}
#lottery-realtime-list .lottery-issue{font-size:11px;padding:2px 3px;}
#lottery-realtime-list .lottery-countdown-row{margin:0;}
#lottery-realtime-list .lottery-countdown-row strong{background:transparent;padding:0;font-size:14px;letter-spacing:0;}
#lottery-realtime-list .new-KJ-TabBox-box-tit-r a{font-size:11px;}
#lottery-realtime-list .new-KJ-TabBox-box-con{margin:6px 0 3px;gap:4px;}
#lottery-realtime-list .kj-ball{gap:2px;}
#lottery-realtime-list .kj-ball h2{max-width:42px;font-size:clamp(16px,4.7vw,22px);border-width:1.5px;}
#lottery-realtime-list .kj-ball .whsx{font-size:13px;line-height:1.2;}
#lottery-realtime-list .kj-add{height:clamp(25px,9vw,42px);}
#lottery-realtime-list .lottery-next-panel{background:transparent;border:0;padding:0;}
#lottery-realtime-list .new-KJ-TabBox-box-foot{border:0;padding:0;font-size:11px;}
#lottery-realtime-list .new-KJ-TabBox-box-foot-r-sx{padding:2px 4px;}
@media(max-width:355px){.page{padding-top:calc(98px + env(safe-area-inset-top,0px));}.page .tech-header{gap:5px;padding-inline:7px;} .tech-header h1 svg{width:19px;height:19px;} .page .notice{width:min(calc(100% - 24px),496px);top:calc(44px + env(safe-area-inset-top,0px));padding:7px 8px;gap:6px;} #lottery-realtime-list .new-KJ-TabBox-box-tit{gap:3px;}#lottery-realtime-list .lottery-region{font-size:12px;}#lottery-realtime-list .lottery-countdown-row strong{font-size:12px;}#lottery-realtime-list .new-KJ-TabBox-box-con{gap:2px;}}
