#cpn-ls-wrapper{
    max-width:1200px;
    margin:40px auto;
    padding:0 16px;
    box-sizing:border-box;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.cpn-ls-card{
    background:#0f1115;
    color:#f9fafb;
    border-radius:18px;
    padding:18px 18px 16px;
    box-shadow:0 18px 40px rgba(0,0,0,0.45);
}
.cpn-ls-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}
.cpn-ls-title{
    font-size:26px;
    font-weight:600;
    letter-spacing:0.04em;
}
.cpn-ls-live-pill{
    display:flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:999px;
    background:#111827;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.12em;
    color:#f97316;
}
.cpn-ls-live-pill .dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:#ef4444;
    box-shadow:0 0 6px #ef4444;
}
.cpn-ls-video-container{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    border-radius:14px;
    overflow:hidden;
    background:#020817;
    margin-bottom:14px;
}
.cpn-ls-tabs{
    position:absolute;
    top:8px;
    left:8px;
    z-index:5;
    display:flex;
    gap:4px;
}
.cpn-ls-tab{
    padding:4px 9px;
    border-radius:999px;
    border:none;
    font-size:9px;
    background:rgba(15,23,42,0.9);
    color:#9ca3af;
    cursor:pointer;
}
.cpn-ls-tab.active{
    color:#f9fafb;
    background:#2563eb;
}
.cpn-ls-stream-pane{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:none;
}
.cpn-ls-stream-pane.active{
    display:block;
}
.cpn-ls-stream-pane iframe{
    width:100%;
    height:100%;
    border:0;
}
.cpn-ls-buttons-block{
    margin:4px 0 10px;
}
.cpn-ls-buttons-title{
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:0.16em;
    color:#9ca3af;
    margin-bottom:4px;
}
.cpn-ls-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.cpn-ls-button{
    padding:7px 16px;
    border-radius:999px;
    font-size:11px;
    font-weight:600;
    color:#ffffff;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 14px rgba(0,0,0,0.35);
    transition:all .18s ease-in-out;
}
.cpn-ls-button:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,0,0,0.45);
}
.cpn-ls-layout{
    display:flex;
    flex-direction:column;
}
.cpn-ls-chat{
    margin-top:4px;
}
.cpn-ls-user-form h4{
    margin:0 0 2px;
    font-size:15px;
    font-weight:500;
}
.cpn-ls-user-form p{
    margin:0 0 6px;
    font-size:11px;
    color:#9ca3af;
}
.cpn-ls-user-fields{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:3px;
}
.cpn-ls-user-fields input{
    flex:1;
    min-width:140px;
    padding:7px 10px;
    border-radius:999px;
    border:1px solid #4b5563;
    background:#020817;
    color:#ffffff;
    font-size:12px;
    outline:none;
}
.cpn-ls-user-fields input::placeholder{
    color:#ffffff;
}
#cpn-ls-save-user{
    padding:7px 14px;
    border-radius:999px;
    border:none;
    background:#0ea5e9;
    color:#020817;
    font-weight:600;
    font-size:11px;
    cursor:pointer;
    white-space:nowrap;
}
.cpn-ls-user-msg{
    font-size:10px;
    min-height:12px;
}
.cpn-ls-user-msg.ok{color:#22c55e;}
.cpn-ls-user-msg.error{color:#ef4444;}
.cpn-ls-chat-box{
    margin-top:6px;
    border-radius:12px;
    background:#020817;
    border:1px solid #111827;
    height:260px;
    overflow-y:auto;
    padding:8px 6px;
}
.cpn-ls-messages{
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:11px;
}
.cpn-ls-message{
    padding:5px 7px;
    border-radius:8px;
    background:#020817;
    border:1px solid #111827;
    display:flex;
    align-items:flex-end;
    gap:4px;
}
.cpn-ls-nickname{
    font-weight:600;
    margin-right:2px;
}
.cpn-ls-text{
    flex:1;
    color:#e5e7eb;
    word-break:break-word;
}
.cpn-ls-time{
    font-size:9px;
    color:#6b7280;
}
.cpn-ls-del{
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:11px;
    margin-left:4px;
    color:#f97316;
}
.cpn-ls-chat-input{
    margin-top:6px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
#cpn-ls-message{
    width:100%;
    min-height:48px;
    padding:8px 10px;
    border-radius:12px;
    border:1px solid #111827;
    background:#020817;
    color:#e5e7eb;
    font-size:11px;
    resize:vertical;
    outline:none;
}
#cpn-ls-message::placeholder{
    color:#9ca3af;
}
.cpn-ls-chat-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.cpn-ls-status{
    font-size:9px;
    color:#9ca3af;
    min-height:10px;
}
.cpn-ls-status.error{color:#ef4444;}
.cpn-ls-status.ok{color:#22c55e;}
#cpn-ls-send{
    padding:7px 18px;
    border-radius:999px;
    border:none;
    background:#38bdf8;
    color:#020817;
    font-weight:600;
    font-size:11px;
    cursor:pointer;
}
#cpn-ls-send:hover{
    opacity:.95;
}
.cpn-ls-mod-note{
    margin-top:4px;
    font-size:9px;
    color:#f97316;
}
@media (max-width:640px){
    #cpn-ls-wrapper{margin:20px auto;}
    .cpn-ls-title{font-size:20px;}
    .cpn-ls-card{padding:14px;}
}
/* Ensure nickname & email are always pure white text on dark background */
.cpn-ls-user-fields input {
    color: #ffffff !important;
}
.cpn-ls-user-fields input::placeholder {
    color: #ffffff !important;
    opacity: 0.92;
}
.cpn-ls-user-fields input:-ms-input-placeholder {
    color: #ffffff !important;
}
.cpn-ls-user-fields input::-ms-input-placeholder {
    color: #ffffff !important;
}
/* Autofill fix for WebKit */
.cpn-ls-user-fields input:-webkit-autofill,
.cpn-ls-user-fields input:-webkit-autofill:hover,
.cpn-ls-user-fields input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0px 1000px #020817 inset !important;
}
