.cctv-ptz-v1-1 {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    grid-template-rows: 78px minmax(0, 1fr);
    background: #020a11;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.cctv-ptz-v1-1.ptz-open-v1-1 {
    display: grid;
}

.ptz-header-v1-1 {
    height: 78px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #07506e;
    background: linear-gradient(180deg, #061521, #03101a);
}

.ptz-brand-v1-1 {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ptz-brand-text-v1-1 {
    min-width: 0;
}

.ptz-title-v1-1 {
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.ptz-subtitle-v1-1 {
    margin-top: 5px;
    color: #91afbf;
    font-size: 12px;
}

.ptz-header-right-v1-1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ptz-live-v1-1,
.ptz-control-live-v1-1 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
}

.ptz-live-v1-1 {
    padding: 9px 13px;
    border: 1px solid #123b4d;
    border-radius: 7px;
    background: #03111c;
    font-size: 13px;
}

.ptz-live-dot-v1-1,
.ptz-control-live-v1-1 span,
.ptz-video-live-v1-1 span {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #00ed65;
    box-shadow: 0 0 9px #00ed65;
}

.ptz-datetime-v1-1 {
    min-width: 185px;
    padding-left: 13px;
    border-left: 1px solid #12384b;
}

.ptz-clock-v1-1 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ptz-date-v1-1 {
    margin-top: 3px;
    color: #91afbf;
    font-size: 11px;
}

.ptz-exit-v1-1 {
    width: 112px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #00aeea;
    border-radius: 9px;
    background: #061b2a;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.ptz-exit-v1-1:hover {
    border-color: #00c3ff;
    background: #08263a;
}

.ptz-exit-icon-v1-1 {
    font-size: 18px;
}

.ptz-main-v1-1 {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.ptz-video-panel-v1-1 {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #12394c;
    border-radius: 12px;
    background: #000;
}

.ptz-video-v1-1 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.ptz-video-live-v1-1 {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #123b4d;
    border-radius: 6px;
    background: rgba(3, 17, 28, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.ptz-control-v1-1 {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #12394c;
    border-radius: 12px;
    background: linear-gradient(180deg, #071925, #04121c);
    overflow: hidden;
}

.ptz-control-head-v1-1 {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #12394c;
}

.ptz-control-title-v1-1 {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.ptz-control-live-v1-1 {
    font-size: 12px;
}

.ptz-info-v1-1 {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #104c68;
    border-radius: 8px;
    background: #062239;
}

.ptz-info-row-v1-1 {
    min-height: 37px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-bottom: 1px solid #0e3a52;
}

.ptz-info-row-v1-1:last-child {
    border-bottom: 0;
}

.ptz-info-icon-v1-1 {
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.ptz-info-label-v1-1 {
    color: #dceaf1;
    font-size: 12px;
}

.ptz-info-value-v1-1 {
    max-width: 150px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptz-status-v1-1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.ptz-status-dot-v1-1 {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #00ed65;
    box-shadow: 0 0 8px #00ed65;
}

.ptz-section-title-v1-1,
.ptz-camera-title-v1-1 {
    margin: 8px 0 5px;
    color: #b5d7e5;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.ptz-pad-v1-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.ptz-btn-v1-1 {
    height: 49px;
    border: 1px solid #27485a;
    border-radius: 9px;
    background: linear-gradient(180deg, #243340, #182733);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 900;
    touch-action: none;
    user-select: none;
}

.ptz-btn-v1-1:hover {
    border-color: #00b9f4;
}

.ptz-btn-v1-1:active {
    transform: scale(.97);
}

.ptz-stop-v1-1 {
    background: #ed2029;
    border-color: #ff4b51;
    font-size: 13px;
}

.ptz-stop-v1-1:hover {
    background: #ff2e35;
}

.ptz-stop-symbol-v1-1 {
    margin-right: 5px;
    font-size: 12px;
}

.ptz-zoom-v1-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.ptz-zoom-btn-v1-1 {
    height: 47px;
    border: 1px solid #27485a;
    border-radius: 9px;
    background: linear-gradient(180deg, #243340, #182733);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    touch-action: none;
    user-select: none;
}

.ptz-zoom-btn-v1-1:hover {
    border-color: #00b9f4;
}

.ptz-zoom-auto-v1-1 {
    font-size: 13px;
}

.ptz-camera-select-v1-1 {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #008fc9;
    border-radius: 9px;
    outline: none;
    background: #062239;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ptz-camera-select-v1-1:focus {
    border-color: #00c3ff;
    box-shadow: 0 0 10px rgba(0, 195, 255, .18);
}

.ptz-camera-select-v1-1 option {
    background: #061b2a;
    color: #fff;
}

@media (max-width: 1000px) {

    .cctv-ptz-v1-1 {
        overflow-y: auto;
        grid-template-rows: 68px auto;
    }

    .ptz-header-v1-1 {
        height: 68px;
        padding: 0 10px;
    }

    .ptz-title-v1-1 {
        font-size: 19px;
    }

    .ptz-subtitle-v1-1 {
        font-size: 10px;
    }

    .ptz-datetime-v1-1,
    .ptz-live-v1-1 {
        display: none;
    }

    .ptz-exit-v1-1 {
        width: 85px;
        height: 42px;
    }

    .ptz-main-v1-1 {
        grid-template-columns: 1fr;
        overflow: visible;
        padding: 8px;
    }

    .ptz-video-panel-v1-1 {
        height: 55vh;
    }

    .ptz-control-v1-1 {
        overflow: visible;
    }
}

/* =====================================================
   PTZ CAMERA GRID DOUBLE-CLICK TRIGGER
===================================================== */

.ptz-grid-trigger-v1-1 {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* =====================================================
   CAMERA CARD IDENTITY BELOW VIDEO
===================================================== */

.camera-card-v1-1 {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    border: 0;
}

.camera-card-v1-1 .camera-video-v1-1 {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid #0784b5;
    border-radius: 6px;
}

.camera-card-v1-1 .camera-name-v1-1 {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;

    display: block;
    padding: 7px 0 0;

    background: transparent;
    color: #eef8fc;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camera-identity-v1-1 {
    width: 100%;
    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    box-sizing: border-box;
}

.camera-identity-v1-1 .camera-name-v1-1 {
    flex: 1;
    min-width: 0;
}

.camera-ptz-badge-v1-1 {
    position: static;

    flex: 0 0 auto;

    padding: 4px 7px;

    background: #c62828;
    border: 1px solid #ef5350;
    border-radius: 3px;

    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .4px;

    pointer-events: none;
}

.ptz-grid-trigger-v1-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 20;

    background: transparent;
    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;
}
