* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    overflow: hidden;
}

.kj-bar {
    width: 100%;
    background: #fff;
    border: 1px solid #11bca7;
    border-radius: 6px;
    overflow: hidden;
}

.kj-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    background: #f5f5f5;
}

.kj-tabs button {
    flex: 1;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #efe7dd 0%, #d3b594 100%);
    color: #7d5531;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.kj-tabs button + button {
    border-left: 0;
}

.kj-tabs button.active {
    background: #fff;
    color: #e60012;
    box-shadow: inset 0 0 0 1px #eadfce;
}

.kj-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px 4px;
    font-size: 12px;
    background: #fff;
    border-bottom: 1px solid #efefef;
    white-space: nowrap;
}

.kj-headline .issue {
    color: #333;
}

.kj-headline .issue em,
.kj-nextline em {
    font-style: normal;
    font-weight: 700;
}

.kj-headline .countdown {
    flex: 1;
    text-align: center;
    color: #e60012;
    font-weight: 700;
}

.kj-headline .countdown b {
    font-size: 15px;
    letter-spacing: 1px;
}

.kj-headline .history {
    color: #12a061;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.kj-balls-wrap {
    background: #f3f3f3;
}

.kj-balls-wrap.is-live-stage {
    background: linear-gradient(180deg, #d3cccc 0%, #c8c1c1 100%);
}

.kj-balls {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px 8px;
    min-height: 78px;
}

.kj-live-board {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px 8px;
    min-height: 90px;
}

.kj-live-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 40px;
    min-height: 72px;
}

.kj-live-char {
    color: rgba(255,255,255,0.9);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.kj-live-slash {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.95);
    font-size: 22px;
    line-height: 1;
}

.kj-live-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 37px;
    margin: 0 auto 3px;
    padding-right: 4px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 37px;
    background: 0 0 no-repeat;
    background-size: 100% 100%;
}

.kj-live-ball i {
    display: block;
    font-style: normal;
    margin-left: 2px;
    margin-top: -1px;
    color: #222;
}

.kj-live-ball.red {
    background-image: url(/assets/images/kj-ball-red.png);
}

.kj-live-ball.blue {
    background-image: url(/assets/images/kj-ball-blue.png);
}

.kj-live-ball.green {
    background-image: url(/assets/images/kj-ball-green.png);
}

.kj-live-sub {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.15;
    color: rgba(255,255,255,0.96);
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}

.kj-live-plus {
    width: 18px;
    padding-bottom: 22px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.kj-empty-balls {
    align-items: center;
    color: #888;
    font-size: 13px;
    min-height: 60px;
}

.kj-tile {
    width: 40px;
    text-align: center;
}

.kj-tile-placeholder {
    opacity: 0.78;
}

.kj-tile-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 37px;
    margin: 0 auto 3px;
    padding-right: 4px;
    box-sizing: border-box;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 37px;
    background: 0 0 no-repeat;
    background-size: 100% 100%;
}

.kj-tile-ball i {
    display: block;
    font-style: normal;
    margin-left: 2px;
    margin-top: -1px;
    color: #222;
    text-shadow: none;
}

.kj-tile-ball.red {
    background-image: url(/assets/images/kj-ball-red.png);
}

.kj-tile-ball.blue {
    background-image: url(/assets/images/kj-ball-blue.png);
}

.kj-tile-ball.green {
    background-image: url(/assets/images/kj-ball-green.png);
}

.kj-tile-ball-placeholder {
    padding-right: 0;
    color: #9ca3af;
    background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
}

.kj-tile-sub {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: #666;
}

.kj-plus {
    width: 18px;
    padding-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    text-align: center;
}

.kj-nextline {
    padding: 7px 8px 8px;
    color: #e60012;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border-top: 1px solid #efefef;
}

.kj-nextline .time {
    color: #e60012;
}

@media screen and (max-width: 380px) {
    .kj-balls,
    .kj-live-board {
        gap: 2px;
        padding: 8px 2px 6px;
    }

    .kj-plus,
    .kj-live-plus {
        width: 12px;
        font-size: 20px;
        padding-bottom: 18px;
    }

    .kj-tile,
    .kj-live-slot {
        width: 31px;
    }

    .kj-tile-ball,
    .kj-live-ball {
        width: 31px;
        height: 34px;
        padding-right: 2px;
        font-size: 15px;
        line-height: 34px;
    }

    .kj-tile-ball i,
    .kj-live-ball i {
        margin-left: 1px;
    }

    .kj-tile-sub,
    .kj-live-sub {
        font-size: 10px;
        line-height: 1.1;
    }

    .kj-live-char {
        font-size: 20px;
    }

    .kj-tabs button {
        font-size: 13px;
    }

    .kj-headline {
        gap: 6px;
        font-size: 11px;
    }

    .kj-headline .countdown b {
        font-size: 13px;
    }

    .kj-headline .history,
    .kj-nextline {
        font-size: 12px;
    }
}
