* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0b0e14;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

/* --- VIDEO SECTION --- */
.video-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    position: relative;
}

.video-player {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-blur-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #1a1a24; /* Fallback */
    filter: blur(10px) brightness(0.5);
    transform: scale(1.1);
    z-index: 1;
}

.live-badge-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.live-badge {
    background: #e91e63;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.viewers-count {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.overlay-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 90%;
}

.lock-icon {
    margin-bottom: -5px;
    color: #e91e63;
}

.overlay-cta h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.overlay-cta p {
    color: #a0a5b5;
    font-size: 1.1rem;
    line-height: 1.4;
}

.join-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.6);
}

/* --- CHAT SECTION --- */
.chat-section {
    position: absolute;
    left: 20px;
    bottom: 20px;
    height: 40vh;
    width: 350px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    z-index: 20;
    pointer-events: none; /* Clicks pass through to the video */
}

.chat-messages {
    flex: 1;
    overflow-y: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Memaksa chat menumpuk dari bawah */
    gap: 10px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black);
}

.chat-msg {
    font-size: 1rem;
    line-height: 1.4;
    animation: slideIn 0.3s ease forwards;
    text-shadow: 1px 1px 3px rgba(0,0,0,1); /* Strong shadow since no bg */
}

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

.msg-author {
    font-weight: 800;
    margin-right: 6px;
}

.msg-text {
    color: #ffffff;
}

.chat-input-area {
    padding-top: 10px;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks just for the input area */
}

.fake-input {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 20px; /* Pill shape for floating look */
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

.fake-input:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .chat-section {
        width: 100%;
        height: 35vh;
        left: 0;
        bottom: 10px;
        align-items: center;
    }
    .chat-messages {
        width: 95%;
        text-align: left;
    }
    .overlay-cta {
        gap: 10px;
    }
    .lock-icon svg {
        width: 36px;
        height: 36px;
    }
    .overlay-cta h1 {
        font-size: 1.6rem;
    }
    .overlay-cta p {
        font-size: 0.95rem;
    }
    .join-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        margin-top: 5px;
    }
    .live-badge-container {
        top: 10px;
        left: 10px;
        transform: scale(0.85);
        transform-origin: top left;
    }
}
