body{
    margin:0;
    background:#0a0a0f;
    color:#fff;
    font-family:'Segoe UI',sans-serif;
}
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
div#viewer-count {
    /* background: hsla(0, 0%, 100%, .3); */
    /* padding: 2rem; */
    border-radius: 100%;
    /* display: inline-block; */
    position: relative;
    font-size: 1.6rem;
    vertical-align: middle;
    /* margin: 2rem 0; */
    opacity: .2;
    cursor: not-allowed;
    overflow: visible;
}
/* overlay controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;

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

    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

/* LIVE indikatorius */
.live-dot {
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    animation: pulse 1s infinite;
}

.live-text {
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
/* HEADER */
.header{
    height:60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    background:rgba(15,15,25,0.9);
    backdrop-filter:blur(10px);
    border-bottom:1px solid #222;
}

.logo{
    font-size:20px;
    font-weight:bold;
    background:linear-gradient(45deg,#ff00cc,#3333ff);
    -webkit-background-clip:text;
    color:transparent;
}

.nav a{
    margin:0 10px;
    color:#aaa;
    text-decoration:none;
}

.nav a:hover{
    color:#fff;
}

/* USER */
.user{
    display:flex;
    align-items:center;
    gap:10px;
}

.user img{
    width:32px;
    border-radius:50%;
}

/* BUTTON */
.btn{
    padding:8px 14px;
    border-radius:8px;
    background:#5865F2;
    color:#fff;
    text-decoration:none;
    transition:0.2s;
}

.btn:hover{
    transform:scale(1.05);
}

/* MAIN */
.container{
    display:flex;
    height:calc(100vh - 120px);
}

/* VIDEO */
.video-section{
    flex:3;
    display:flex;
    justify-content:center;
    align-items:center;
}

.video-wrapper{
    position:relative;
    width:95%;
    height:90%;
}

.video-wrapper iframe{
    width:100%;
    height:100%;
    border-radius:16px;
    box-shadow:0 0 30px rgba(88,101,242,0.3);
}

/* OVERLAY */
.overlay{
    position:absolute;
    top:10px;
    right:10px;
    display:flex;
    gap:10px;
}

.overlay div, .overlay button{
    background:rgba(0,0,0,0.6);
    padding:6px 10px;
    border-radius:8px;
    border:none;
    color:#fff;
}

/* CHAT */
.chat{
    flex:1;
    display:flex;
    flex-direction:column;
    background:#111;
    border-left:1px solid #222;
}

.chat-header{
    padding:12px;
    background:#1a1a2e;
}

#messages{
    flex:1;
    overflow-y:auto;
    padding:10px;
}

.msg{
    background:#1c1c2b;
    padding:8px;
    margin-bottom:8px;
    border-radius:10px;
    animation:fadeIn 0.3s ease;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* INPUT */
.input{
    padding:10px;
}

input{
    width:95%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:#1c1c2b;
    color:#fff;
}

/* LOGIN */
.login-box{
    text-align:center;
    padding:20px;
}
#messages {
    scroll-behavior: smooth;
}
/* FOOTER */
.footer{
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-top:1px solid #222;
    background:#0f0f15;
}

/* 📱 MOBILE */
@media(max-width:900px){
    .container{
        flex-direction:column;
    }

    .chat{
        height:40%;
    }
}




/* BLUR visam puslapiui */
body.blurred {
    overflow: hidden;
}

body.blurred .container,
body.blurred header,
body.blurred footer {
    filter: blur(8px);
    pointer-events: none;
}

/* MODAL */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* BOX */
.age-box {
    background: linear-gradient(145deg, #111, #1a1a1a);
    padding: 30px;
    border-radius: 20px;

    width: 90%;
    max-width: 420px;

    text-align: center;
    color: #fff;

    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: pop 0.3s ease;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.age-box h2 {
    margin-bottom: 10px;
}

.age-box p {
    font-size: 14px;
    opacity: 0.75;
}

/* CHECKBOX */
.check {
    display: flex;
    align-items: center;
    margin-top: 20px;
    text-align: left;
    font-size: 13px;
    gap: 10px;
}

.check input {
    transform: scale(1.2);
}

/* BUTTONS */
#enterBtn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: red;
    color: white;
    font-weight: bold;
    cursor: pointer;

    opacity: 0.5;
}

#enterBtn.enabled {
    opacity: 1;
}

.exit {
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
}
/* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Modal box */
.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    color: #fff;
    text-align: center;
    position: relative;
}

/* Close button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Inputs */
.modal-content input {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 8px;
    border: none;
}

/* Submit */
.modal-content button {
    background: red;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 17px;
}

/* Avatar selection */
.avatar-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.avatar-options .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.avatar-options .avatar:hover {
    transform: scale(1.1);
}

.avatar-options .avatar.selected {
    border-color: red;
}
/* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal box */
.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    color: #fff;
    text-align: center;
    position: relative;
}

/* Close button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Inputs */
.modal-content input {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 17px;
}


.modal-content {
    margin: 10% auto; /* <--- centras horizontaliai */
    padding: 20px;
    border-radius: 10px;
    width: 300px;
}
.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer; /* būtina pelės ikonai */
}

.btn:hover {
    background-color: #0056b3;
}
