.lightmain {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 15rem;
    gap: 0.5rem;
}

.lightleft {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0
}

.lightright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d5d0ca transparent;
}

.vid-wrap {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #eee;
    aspect-ratio: 16 / 10;
    max-height: 380px;
    padding: 0.5rem 0.5rem;
    background-color: #181a1b;
}

.night .vid-wrap{
    border:1px solid #444;
}

.vid-wrap video,
.vid-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

#videoEl {
    z-index: 1;
    object-fit: contain
}

#heatCanvas {
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    object-fit: contain
}

#heatCanvas.show {
    opacity: .55
}

/* 热力图透明度 */
#crossCanvas {
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    object-fit: contain
}

#crossCanvas.show {
    opacity: 1
}

.vid-hud {
    position: absolute;
    z-index: 5;
}

.vid-hud-tl {
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem;
    flex-direction: row;
}

.vid-hud-bc {
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center
}

.badge {
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    font-size: 0.5rem;
    pointer-events: auto;
    color: #fff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.under {
    border-color: rgba(88, 168, 232, 0.3);
    background: rgba(88, 168, 232, 0.3);
}

.badge.ok {
    border-color: rgba(60, 200, 104, 0.3);
    background: rgba(60, 200, 104, 0.3);
}

.badge.over {
    border-color: rgba(232, 88, 56, 0.3);
    background: rgba(232, 88, 56, 0.3);
}

.fps-tag {
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    font-size: 0.5rem;
    color: #eee;
    border: 1px solid rgba(232, 168, 56, 0.2);
    background: rgba(0, 0, 0, 0.55);
}

.quse-tag{
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    font-size: 0.5rem;
    color: #eee;
    border: 1px solid #795548;
    background: #795548;
    cursor: pointer;
}

.scene-tag {
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    font-size: 0.5rem;
    color: #e8a838;
    border: 1px solid rgba(232, 168, 56, 0.2);
    background: rgba(0, 0, 0, 0.55);
}

.lux-box {
    text-align: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 3px;
}

.lux-num {
    font-size: 0.8rem;
    color: #e8a838;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.lux-lbl {
    font-size: 0.4rem;
    color: #888;
    letter-spacing: 1px;
}

.no-cam {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f6f7fa;
}

.night .no-cam {
    background: #151515
}

.no-cam p {
    color: #607D8B;
    font-size: 0.8rem;
}

.pause-ov {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(245, 242, 237, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px)
}

.night .pause-ov {
    background: rgba(12, 12, 12, 0.55)
}

.pause-ov.on {
    display: flex
}

.pause-ov span {
    font-size: 40px;
    color: rgba(128, 128, 128, 0.5)
}

.canvasdivs{
    border: 1px solid #444;
    background: radial-gradient(ellipse at 15% 40%, rgba(249, 115, 22, .07) 0%, transparent 55%), radial-gradient(ellipse at 85% 20%, rgba(239, 68, 68, .04) 0%, transparent 50%), radial-gradient(ellipse at 50% 90%, rgba(251, 191, 36, .04) 0%, transparent 45%);
    background-color: #181a1b;
    padding: 0.25rem 0;
    border-radius: 3px;
}

.action-bar{
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.night .action-bar{
    border-top: 1px solid #444;
    background-color: #151515;
}

.charts {
    display: grid;
    grid-template-columns:1fr;
    gap: 0.5rem;
}

.ch-card {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 0.5rem;
}

.night .ch-card {
    background: #181a1b;
    border-color: #444;
}

.ch-canvas {
    width: 100%;
    height: 152px;
    display: block
}

.card {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 0.5rem;
}

.night .card {
    background: #181a1b;
    border-color: #444;
}

.card-h {
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.night .card-h {
    color: #6a6560
}

.card-h-left {
    display: flex;
    align-items: center;
    gap: 7px
}

.card-unit {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: #8a8580;
    font-weight: 500;
    letter-spacing: 0.5px
}

.night .card-unit {
    color: #6a6560
}

.card-h-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #d5d0ca;
    transition: background .3s
}

.night .card-dot {
    border-color: #2a2a2a
}

.card-hud-val {
    font-size: 0.6rem;
}

.card-btndiv{
    border: 1px solid #eee;
    text-align: center;
    padding: 0.5rem;
}

.night .card-btndiv{
    border: 1px solid #444;
}

.card-btn {
    padding: 0.25rem 0.75rem;
    display: inline-block;
    width: 100%;
    font-size: 0.6rem;
    cursor: pointer;
    background-color: #607d8b;
    color: #fff;
    border-radius: 3px;
}

.night .card-btn {
    color: #ddd;
}

.card-h-btns {
    display: flex;
    gap: 6px
}

.tabs {
    display: flex;
    gap: 3px
}

.tab {
    padding: 0px 0.2rem;
    font-size: 0.5rem;
    cursor: pointer;
}

.night .tab {
    color: #6a6560
}

.tab.on {
    color: #e8a838
}

.mg {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px
}

.mi {
    border-radius: 3px;
    padding: 10px;
    transition: background .4s;
    border: 1px solid #eee;
}

.night .mi {
    background: #151515;
    border:1px solid #444;
}

.mi-l {
    font-size: 0.5rem;
    margin-bottom: 0.4rem;
}

.mi-l span{
    float: right;
    color: #aaa;
}

.night .mi-l span{
    color: #444;
}

.night .mi-l {
    color: #6a6560;
}

.mi-v {
    font-size: 0.6rem;
}

.night .mi-v{
    color: #aaa;
}

.hm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hm-c {
    height: 4.6rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.night .hm-c {
    color: #666;
    border: 1px solid #444;
    background: #151515;
}

.pick-resultdiv{
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 3px;
    border: 1px solid #444;
    background-color: #444;
}

.pick-result {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0 0.5rem;
    border-radius: 3px;
    color: #fff;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.copyscolor{
    height: 1.6rem;
    line-height: 1.6rem;
    text-align: center;
    background-color: #222;
    color: #aaa;
    border-radius: 3px;
    cursor: pointer;
}

.pick-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.night .pick-swatch {
    border-color: #2a2a2a
}

.pick-info {
    font-size: 0.6rem;
    line-height: 1.7
}

.pick-info span {
    font-weight: 600
}

.bench-row {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 1px solid #eee;
}

.night .bench-row{
    border:1px solid #444;
}

.bench-row.show {
    display: flex;
}

.bench-val {
    font-size: 0.6rem;
}

.night .bench-val {
    color: #a09a92
}

.bench-delta {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px
}

.bench-delta.up {
    color: #3cc868;
    background: rgba(60, 200, 104, 0.1)
}

.bench-delta.down {
    color: #58a8e8;
    background: rgba(88, 168, 232, 0.1)
}

.bench-delta.eq {
    color: #8a8580;
    background: #eae7e1
}

.night .bench-delta.eq {
    color: #6a6560;
    background: #151515
}

@media(max-width:1300px) {
    .mg {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width:1160px) {
    .mg {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .action-bar button:nth-child(1) {
        width: calc(50% - 0.25rem);
        float: left;
    }

    .action-bar button:nth-child(2) {
        width: calc(50% - 0.25rem);
        float: right;
    }

    .action-bar button:nth-child(3) {
        width: calc(50% - 0.25rem);
        margin-top: 0.5rem;
        float: left;
    }

    .action-bar button:nth-child(4) {
        width: calc(50% - 0.25rem);
        margin-top: 0.5rem;
        float: right;
    }

    .action-bar button:nth-child(5) {
        width: 100%;
        margin-top: 0.5rem;
    }

    .hm-c {
        height: 4.3rem;
    }
}

@media(max-width:1120px) {
    .hm-c {
        height: 3.55rem;
    }
    .mg {
        grid-template-columns: 1fr 1fr;
    }


}

@media(max-width:990px) {
    .lightmain {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .hm-c {
        height: 2.55rem;
    }
    .lux-num {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
}