/* 加拿大28 顶部信息区 */
.gmfix.jnd28-ui {
    padding: 0 !important;
    background: #fff;
    z-index: 100;
    overflow: visible;
}

.jnd28-hidden-tools {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

.gmfix.jnd28-ui .jnd28-top-panel {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e8e8e8;
}

.gmfix.jnd28-ui .jnd28-user-col,
.gmfix.jnd28-ui .jnd28-issue-col {
    flex: 1;
    padding: 10px 12px 8px;
    box-sizing: border-box;
}

.gmfix.jnd28-ui .jnd28-user-col {
    border-right: 1px solid #e8e8e8;
    text-align: left;
}

.gmfix.jnd28-ui .jnd28-issue-col {
    text-align: left;
}

.gmfix.jnd28-ui .jnd28-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 2px;
}

.gmfix.jnd28-ui .jnd28-user-points {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.gmfix.jnd28-ui .jnd28-issue-title {
    font-size: 14px;
    color: #222;
    line-height: 1.35;
    margin-bottom: 6px;
}

.gmfix.jnd28-ui .jnd28-issue-title b {
    font-weight: 600;
    color: #222;
}

.gmfix.jnd28-ui .jnd28-status-badge {
    display: inline-block;
    min-width: 60px;
    padding: 3px 12px;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    background: #9e9e9e;
    border-radius: 12px;
    text-align: center;
}

.gmfix.jnd28-ui .jnd28-status-badge.is-open {
    background: #4caf50;
}

.gmfix.jnd28-ui .jnd28-status-badge.is-drawing {
    background: #ff9800;
}

.gmfix.jnd28-ui .jnd28-draw-box {
    position: relative;
    background: #fff;
}

/* 上期开奖条：紧凑单行，覆盖 index.css 里 .gmfix .open 的 3em 高度 */
.gmfix.jnd28-ui .jnd28-result-bar {
    display: flex;
    align-items: center;
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 6px 32px 6px 10px !important;
    background: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.gmfix.jnd28-ui .jnd28-result-main {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 13px;
    color: #333;
    min-width: 0;
    overflow: hidden;
}

.gmfix.jnd28-ui .jnd28-prev-label {
    margin-right: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gmfix.jnd28-ui .jnd28-prev-label em {
    font-style: normal;
    color: #3da1fe;
    font-weight: 600;
}

.gmfix.jnd28-ui .jnd28-balls {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.gmfix.jnd28-ui .jnd28-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

.gmfix.jnd28-ui .jnd28-ball.ball-purple {
    background: #7b4bb7;
}

.gmfix.jnd28-ui .jnd28-ball.ball-blue {
    background: #2f80ed;
}

.gmfix.jnd28-ui .jnd28-ball-op {
    margin: 0 2px;
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.gmfix.jnd28-ui .jnd28-tags {
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.gmfix.jnd28-ui .jnd28-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.gmfix.jnd28-ui .jnd28-result-bar.is-expanded .jnd28-chevron {
    margin-top: -2px;
    transform: rotate(-135deg);
}

/* 历史开奖：下拉浮层，避免被聊天区挡住 */
.gmfix.jnd28-ui .jnd28-history-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.gmfix.jnd28-ui .jnd28-history-panel.is-open {
    display: block;
}

.gmfix.jnd28-ui .jnd28-history-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gmfix.jnd28-ui .jnd28-history-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 7px 10px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
    color: #333;
    background: #fff;
    line-height: 1.3;
    overflow: hidden;
}

.gmfix.jnd28-ui .jnd28-history-item:last-child {
    border-bottom: none;
}

.gmfix.jnd28-ui .jnd28-history-period {
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 2px;
}

.gmfix.jnd28-ui .jnd28-history-period em {
    font-style: normal;
    color: #3da1fe;
    font-weight: 600;
}

.gmfix.jnd28-ui .jnd28-history-balls {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.gmfix.jnd28-ui .jnd28-history-tags {
    flex-shrink: 0;
    color: #666;
    white-space: nowrap;
    margin-left: 2px;
}

.gmfix.jnd28-ui .jnd28-history-balls .jnd28-ball {
    width: 20px;
    height: 20px;
    font-size: 11px;
}

.gmfix.jnd28-ui #01,
.gmfix.jnd28-ui #02 {
    display: none;
}

/* 欢迎语紧贴开奖条 */
.gmfix.jnd28-ui .jnd28-welcome-bar {
    margin: 0 !important;
    padding: 0 10px !important;
    width: auto !important;
    font-size: 12px !important;
    line-height: 28px !important;
    height: 28px !important;
    background: #868686 !important;
    border-radius: 0 !important;
    color: #fff !important;
    overflow: hidden;
}

.gmfix.jnd28-ui .jnd28-welcome-bar marquee {
    line-height: 28px;
    font-size: 12px;
}

body.jnd28-page .headblank {
    height: 0 !important;
    display: none;
}

body.jnd28-page div.main.jnd28-main {
    margin: calc(3.5em + 146px) 0 50px 0;
    padding-top: 4px;
}

@media screen and (max-width: 360px) {
    .gmfix.jnd28-ui .jnd28-result-main {
        font-size: 12px;
    }
    .gmfix.jnd28-ui .jnd28-ball {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    body.jnd28-page div.main.jnd28-main {
        margin-top: calc(3.5em + 112px);
    }
}
