.wp-obs-livestream-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.wp-obs-livestream-embeds,
.wp-obs-livestream-chat {
    width: 100%;
}
@media (min-width: 768px) {
    .wp-obs-livestream-main {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
    .wp-obs-livestream-embeds {
        flex: 2 1 0;
        max-width: 66%;
        height: 315px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .wp-obs-livestream-embeds iframe {
        height: 100% !important;
        min-height: 0;
    }
    .wp-obs-livestream-chat {
        flex: 1 1 0;
        max-width: 400px;
        min-width: 260px;
        height: 315px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}
.wp-obs-yt, .wp-obs-fb {
    margin-bottom: 10px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#wp-obs-chat {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#wp-obs-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    padding: 5px;
    min-height: 0;
}

.wp-obs-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
    word-break: break-word;
    position: relative;
}
.wp-obs-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}
.wp-obs-chat-msg-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
#wp-obs-chat-form {
    display: flex;
    gap: 5px;
}
#wp-obs-chat-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
}
#wp-obs-chat-form button {
    padding: 5px 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}
#wp-obs-chat-form button:hover {
    background: #1d5e90;
}
.wp-obs-msg-delete {
    margin-left: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #b00;
}
.wp-obs-chat-login-msg {
    color: #b00;
    font-weight: bold;
    padding: 10px 0;
}