/* Keep original page/grid CSS. Only locally rendered runtime components follow. */
.tw-player{aspect-ratio:16/9;position:relative;background:#000}
.tw-player #player{width:100%;height:100%;position:absolute;inset:0}
.tw-player #player{object-fit:contain}
#local-play-video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;background:transparent;color:#fff;font-size:36px;line-height:1;padding:20px;cursor:pointer;text-shadow:0 1px 5px #0008}
#local-play-video[hidden],#local-video-error[hidden]{display:none}
#local-video-error{position:absolute;left:10%;right:10%;top:45%;background:#000b;color:white;padding:16px;text-align:center}
.local-comment-wait{height:200px;display:flex;align-items:center;justify-content:center;color:#8d9296;font-size:14px}
.local-comment-list{height:calc(100vh - 220px);min-height:350px;overflow-y:scroll;text-align:center;padding-top:14px;box-sizing:border-box}
.local-all-comments{font-size:13px}
.local-comment-wait[hidden],.local-timed-comment[hidden],.local-comment-after-end[hidden]{display:none}
.local-comments-active .local-comment-list{height:calc(100vh - 150px);padding-top:10px;overflow-anchor:none}
#local-timed-comments{text-align:left}
.local-timed-comment{display:flex;gap:9px;padding:12px 8px;border-bottom:1px solid #e4e7ea;align-items:flex-start}
.local-timed-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;object-fit:cover}
.local-timed-content{flex:1;min-width:0}
.local-timed-meta{display:flex;gap:8px;align-items:baseline;justify-content:space-between;font-size:12px;color:#7c858e}
.local-timed-meta b{overflow-wrap:anywhere;color:#444}
.local-timed-meta a{white-space:nowrap;font-size:11px}
.local-timed-body{font-size:14px;line-height:1.55;color:#333;overflow-wrap:anywhere;white-space:pre-wrap;margin-top:4px}
.local-timed-comment .emoji{width:14px;height:15px;vertical-align:middle}
.local-comment-after-end{display:block;font-size:11px;color:#8d9296;margin-top:4px}
.local-item-bar{display:flex;align-items:center;gap:10px;padding:8px 0;min-height:48px;box-sizing:border-box}
.local-mp{min-width:44px;border-right:1px solid #ddd;text-align:center;line-height:15px;font-size:14px}
.local-mp b{display:block;background:#00aeff;color:white;border-radius:10px;width:24px;margin:auto;font-size:10px;line-height:14px}
.local-mp span{display:block}
.local-item-caption{color:#8d9296;font-size:14px;flex:1}
#local-open-items{border-radius:22px;padding:9px 17px;font-size:16px;white-space:nowrap}
.tw-support-button[data-status="supporting"] .tw-back-user-not-supporting-button,.tw-support-button[data-status="supporting"] .tw-back-user-login-button{display:none}
.tw-support-button[data-status="supporting"] .tw-back-user-supporting-button{display:inline-flex}
.tw-live-author_socials-follow.local-more-open .tw-follow-popup-locator{display:block;visibility:visible;opacity:1}
#local-items{padding:0;border:0;border-radius:5px;width:556px;max-width:calc(100vw - 32px);box-shadow:0 3px 8px #0003;color:#444;background:#fff;overflow:hidden}
#local-items:not([open]){display:none}
#local-items[open]{display:block}
#local-items::backdrop{background:#0003}
#local-items header{height:44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;position:relative;padding:0 8px;box-sizing:border-box}
#local-items header>span{font-size:14px;font-weight:bold;color:#8d9296}
#local-items header>b{position:absolute;left:50%;transform:translateX(-50%);font-size:16px}
#local-items header form{margin:0;padding:0}
#local-close-items{border:0;background:none;color:#8d9296;font-size:27px;font-weight:bold;line-height:1;cursor:pointer}
.local-points{height:68px;background:#fff9ed;display:flex;align-items:center;justify-content:space-between;padding:0 28px 0 15px}
.local-points>b{color:#ffb72f;font-size:20px}
.local-points button{background:#ffbd32;color:#fff;border:0;border-radius:4px;font-size:16px;font-weight:bold;padding:7px 15px;opacity:1}
.local-gifts{display:flex;gap:24px;padding:34px 30px 46px}
.local-gift{width:84px;display:flex;align-items:center;flex-direction:column;gap:8px;font-size:13px;color:#8d9296;font-weight:bold}
.local-gift-icon{width:64px;height:64px;object-fit:contain}
.local-gift>b{font-size:16px;color:#444;display:flex;gap:5px;align-items:center}
.local-gift>b img{width:14px;height:14px}
@media(max-width:800px){.local-comment-list{height:350px}.local-comment-wait{height:100px}.local-item-caption{font-size:12px}.local-gifts{justify-content:space-around;gap:10px;padding-left:15px;padding-right:15px}}
@media(max-width:800px){.local-comments-active .local-comment-list{height:450px;max-height:70vh}}
