.live-page {
    margin-top: 20px;
}

.live-stage {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

.live-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-note {
    margin: 16px 0 0;
    color: var(--text-secondary);
}

.live-actions {
    margin: 16px 0 0;
}

.live-admin {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle, #d5deea);
    border-radius: 8px;
}

.live-admin p {
    margin: 0 0 10px;
}

.live-geo {
    margin: 12px 0 0;
    font-size: 0.85rem;
}

.live-geo a {
    color: var(--text-secondary);
}

.live-chat {
    position: relative;
    margin-top: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border, #d5deea);
    border-radius: 8px;
}

.live-chat-title {
    margin: 0;
    padding: 12px 14px 0;
    font-size: 1.05rem;
}

.live-chat-log {
    height: 280px;
    overflow-y: auto;
    padding: 10px 14px;
}

.live-chat-empty,
.live-chat-row {
    margin: 0 0 8px;
}

.live-chat-name {
    margin-right: 6px;
}

.live-chat-time {
    margin-right: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.live-chat-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.live-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 14px 12px;
}

.live-chat-label {
    margin: 0;
}

.live-chat-label-body {
    flex: 1 1 0;
    min-width: 0;
}

.live-chat-form input {
    width: 100%;
    margin: 0;
}

.live-chat-label input[name="name"] {
    width: 140px;
}

.live-chat-form .btn {
    flex: 0 0 auto;
}

.live-chat-error {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--color-danger, #a32020);
}

.live-chat-form .live-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 801px) {
    .live-page.content {
        max-width: none;
        padding-left: 75px;
        padding-right: 75px;
    }
}

@media (max-width: 800px) {
    .live-page.content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .live-chat-log {
        height: 220px;
    }

    .live-chat-form {
        flex-wrap: wrap;
    }

    .live-chat-label,
    .live-chat-label input[name="name"] {
        width: 100%;
    }

    .live-chat-form .btn {
        width: 100%;
    }
}
