/* サイト内視聴ページ */
.vliver-watch-section {
    padding-top: clamp(42px, 5vw, 76px);
    padding-bottom: clamp(64px, 7vw, 108px);
}

.vliver-watch-container {
    max-width: 1180px;
}

.vliver-watch-header {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(219, 231, 247, 0.96);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 69, 126, 0.09);
}

.vliver-watch-header h1 {
    max-width: 100%;
    margin: 8px 0 12px;
    font-size: var(--vliver-font-size-section-heading, 36px);
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.vliver-watch-status {
    margin: 0;
}

.vliver-watch-status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vliver-watch-status-live::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.vliver-watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--vliver-color-text-muted, #5b6680);
    font-size: 14px;
}

.vliver-watch-player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: #07152f;
    box-shadow: 0 22px 58px rgba(7, 21, 47, 0.18);
}

.vliver-watch-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.vliver-watch-player-empty {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
}

.vliver-watch-description,
.vliver-watch-chat {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 69, 126, 0.09);
}

.vliver-watch-description {
    line-height: 1.9;
}

.vliver-watch-chat h2 {
    margin: 0 0 18px;
    font-size: clamp(20px, 2vw, 26px);
}

.vliver-watch-chat-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.vliver-watch-chat-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.vliver-watch-chat-controls textarea {
    width: 100%;
    min-height: 96px;
    padding: 14px 16px;
    resize: vertical;
    border: 1px solid rgba(20, 49, 94, 0.2);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.6;
}

.vliver-watch-chat-controls textarea:focus {
    border-color: var(--vliver-color-primary, #5878ff);
    outline: 3px solid color-mix(in srgb, var(--vliver-color-primary, #5878ff) 16%, transparent);
}

.vliver-watch-chat-controls .button {
    min-width: 112px;
    min-height: 48px;
    border: 0;
}

.vliver-watch-chat-controls .button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.vliver-watch-chat-result {
    min-height: 1.6em;
    margin: 10px 0 0;
    font-size: 14px;
}

.vliver-watch-chat-result[data-state="success"] {
    color: #237a43;
}

.vliver-watch-chat-result[data-state="error"] {
    color: #b3261e;
}

.vliver-watch-chat-login-note {
    margin: 0;
}

.vliver-watch-bottom-actions {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 760px) {
    .vliver-watch-section {
        padding-top: 30px;
    }

    .vliver-watch-player-shell {
        border-radius: 0;
    }

    .vliver-watch-chat-controls {
        grid-template-columns: 1fr;
    }

    .vliver-watch-chat-controls .button {
        width: 100%;
    }
}
