body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(120deg, #f6d365, #fda085);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Popup */
#nicknamePopup {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popupContent {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.popupContent h2 {
    margin-bottom: 20px;
    color: #ff6b6b;
}

.popupContent input {
    padding: 10px;
    width: 200px;
    margin-bottom: 15px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.popupContent button {
    padding: 10px 25px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* Main Container */
#mainContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#header {
    text-align: center;
    padding: 15px;
    background: #f67280;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px #00000033;
}

/* Videos */
#videos {
    flex: 3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.videoWrapper {
    position: relative;
    width: 45%;
    height: 80%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

/* Controls */
#controls {
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 15px;
    background: #f8b500;
}

#controls button {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

#controls button:hover {
    transform: scale(1.1);
}

#nextBtn { background: #6a2c70; color: #fff; }
#stopBtn { background: #ff6b6b; color: #fff; }

/* Chat */
#chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #355c7d;
    color: white;
}

#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#chatInputContainer {
    display: flex;
}

#chatInput {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 16px;
}

#sendBtn {
    padding: 10px 20px;
    background: #6c5b7b;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
