#live_banner {
    margin: 24px 0;
    padding: 16px 20px;
    background: #14080d;
    color: #fff;
    border-radius: 12px;
}
#live_banner h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
}
.live-banner-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.live-banner-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.live-banner-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #2a1218;
}
.live-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.live-pill .live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    box-shadow: none;
}
.live-banner-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.live-banner-meta strong,
.live-banner-meta em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-banner-card em {
    font-style: normal;
    opacity: .8;
    font-size: 13px;
}
.live-banner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
@media (max-width: 900px) {
    .live-banner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, .25);
    vertical-align: middle;
}
.live-help { opacity: .7; font-size: 14px; line-height: 1.4; }
#channel_live { width: 100%; max-width: 720px; }
#channel_live > h2 { margin: 0 0 8px; line-height: 1.1; }
#channel_live .live-scope { margin: 36px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.1; }
#channel_live .live-form { max-width: 720px; display: flex; flex-direction: column; gap: 0; }
#channel_live .live-actions { margin-top: 16px; }
#channel_live .frame { width: 100%; max-width: 100%; }
#channel_live .form-line.left { align-items: center; gap: 8px; }
.live-copyline { display: flex; gap: 8px; align-items: center; }
.live-copyline input { flex: 1; min-width: 0; }
#channel_live .live-copyline input[type="password"]::-ms-reveal,
#channel_live .live-copyline input[type="password"]::-ms-clear { display: none; }
#liveKeyConfirm { z-index: 1100; }
#liveKeyConfirm .modal-content { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 16px; width: 100%; }
#liveKeyConfirm .modal-content p { color: light-dark(#666, #CECECE); line-height: 1.4em; }
#liveKeyConfirm .comment-confirm-actions { display: flex; flex-direction: row; justify-content: flex-end; gap: 8px; width: 100%; }
.live-check { display: flex; gap: 8px; align-items: center; }
.live-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.live-chat { margin-top: 16px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; }
#watch .recommendations > div:not(.live-chat) {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.live-chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; }
#watch .live-chat .publish_comment { margin: 8px; width: auto; position: relative; }
#watch .live-chat .publish_comment .pavatar { flex: none; }
#watch .live-chat .publish_comment .pavatar img { width: 32px; height: 32px; }
#watch .live-chat .publish_comment .dropdown { top: auto; bottom: 36px; left: 0; min-width: 220px; }
#watch .live-chat .publish_comment input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    outline: none;
}
.live-msg { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 8px; }
.live-msg.tipped { background: rgba(255, 98, 0, .15); padding: 6px 8px; }
.live-msg.tipped .text { font-size: 16px; }
.live-pin { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(127,127,127,.2); background: light-dark(#fff7f2, #241610); flex-shrink: 0; }
.live-pin .live-msg-line { flex: 1; }
.live-pin .author { font-weight: 700; margin-right: 6px; color: light-dark(#3d3d3d, #c8c8c8); }
.live-pin a.author { color: #ff6200; }
.live-pin .text { display: inline; margin: 0; line-height: inherit; }
.live-pin-mark { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.live-pin-x { flex: none; width: 16px; height: 16px; margin-top: 1px; border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 14px; padding: 0; }
.live-muted { margin: 8px; font-size: 13px; line-height: 1.4; color: light-dark(#3d3d3d, #c8c8c8); }
.live-msg-pp { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; margin-top: 1px; }
.live-msg-line { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; word-break: break-word; }
.live-msg .author { font-weight: 700; margin-right: 6px; color: light-dark(#3d3d3d, #c8c8c8); }
.live-msg a.author { color: #ff6200; }
.live-msg .text { display: inline; margin: 0; line-height: inherit; }
.live-msg .text a, .live-pin .text a { color: #ff6200; text-decoration: underline; }
.live-msg .badge-tip { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; }
.live-msg .comment_menu {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    opacity: .55;
    cursor: pointer;
    background-position: center;
}
.live-msg .comment_menu:hover { opacity: 1; }
#watch .object_box .video-js { width: 100%; max-width: 100%; }
#watch:has(.recommendations.live-side) .watch-content .object_box {
    width: min(100%, calc((100vh - var(--topBarHeight) - 48px) * 16 / 9));
    aspect-ratio: 16 / 9;
    margin-inline: auto;
    background-image: none;
    background-color: #000;
}
#watch:has(.recommendations.live-side) .watch-content .object_box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #000;
}
#watch .recommendations.live-side {
    display: flex;
    width: 400px;
    height: calc(100vh - var(--topBarHeight) - 48px);
    max-height: calc(100vh - var(--topBarHeight) - 48px);
    position: sticky;
    top: calc(var(--topBarHeight) + 24px);
    align-self: flex-start;
}
#watch .recommendations.live-side .live-chat {
    flex: 1;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: light-dark(#fff, #161718);
}
#watch .recommendations.live-side .live-chat .publish_comment {
    flex-shrink: 0;
}
@media (max-width: 991px) {
    #watch:has(.recommendations.live-side) {
        flex-direction: column;
    }
    #watch:has(.recommendations.live-side) .watch-content {
        width: 100%;
        min-width: 0;
    }
    #watch:has(.recommendations.live-side) .watch-content .object_box {
        width: 100%;
    }
    #watch .recommendations.live-side {
        display: flex;
        position: static;
        width: 100%;
        height: 60vh;
        max-height: 60vh;
        align-self: stretch;
    }
}
