/* v0.15: Twitch chat is a second VIEW of the existing IRC/EventSub data, not a second connection. */
.twitch-feed-panel{display:flex;flex-direction:column;min-width:0;height:128px;min-height:85px;background:#100d1bcc;border:1px solid #6d5479;border-radius:7px;margin:6px 8px 8px;overflow:hidden;color:#ddd2e9}
.twitch-feed-bar{display:flex;align-items:center;gap:3px;min-height:26px;padding:3px 5px;background:linear-gradient(90deg,#3b2449,#251c39);user-select:none}
.twitch-feed-bar strong{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#e8c398;letter-spacing:.45px}
.twitch-feed-bar strong span{color:#b7adcc;font-weight:500;font-size:9px;letter-spacing:0}
.twitch-feed-bar button{width:25px;height:21px;padding:0;background:#271a37;border:1px solid #77588a;border-radius:4px;color:#f2daff;flex-shrink:0}
.twitch-feed-bar button:hover,.twitch-feed-bar button:focus-visible{background:#654278;outline:1px solid #e5c295}
.twitch-feed-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 7px;background:#111024b6}
.twitch-feed-line{display:flex;flex-wrap:wrap;gap:4px;align-items:baseline;padding:3px 0;border-bottom:1px solid #ffffff08;line-height:1.35;font-size:11px;overflow-wrap:anywhere}
.twitch-feed-line time{color:#8880a3;font-size:9px}.twitch-feed-line b{color:#d58deb;font-size:10px}.twitch-feed-line span{color:#ebdff1;min-width:0}
.twitch-feed-empty{color:#a9a1ba;font-size:10px;line-height:1.4;margin:2px}
.twitch-feed-foot{flex:0 0 auto;padding:4px 7px;border-top:1px solid #40304f;color:#a99abd;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.twitch-feed-panel.twitch-collapsed{height:29px!important;min-height:29px!important;overflow:hidden}.twitch-feed-panel.twitch-collapsed .twitch-feed-list,.twitch-feed-panel.twitch-collapsed .twitch-feed-foot{display:none}
.twitch-feed-panel.twitch-popout{position:fixed!important;z-index:var(--desk-z,150)!important;width:min(352px,90vw);height:270px;min-height:85px;max-height:65dvh;resize:both;overflow:hidden;margin:0;box-shadow:0 14px 40px #000d,0 0 1px #ad81c6;background:#181027}
.twitch-feed-panel.twitch-popout .twitch-feed-bar{cursor:grab;touch-action:none}.twitch-feed-panel.twitch-popout .twitch-feed-bar:active{cursor:grabbing}
#app[data-desktop-layout="floating"] .stream-card .twitch-feed-panel{display:flex!important;flex:0 0 auto;height:122px;min-height:75px;margin:2px 8px 7px}
#app[data-desktop-layout="floating"] .stream-card .stream-visual{min-height:75px;margin:4px 8px}
#app[data-desktop-layout="floating"] .stream-card .desk-video-open{min-height:29px;margin-bottom:5px}
#app[data-desktop-layout="floating"] .messages-panel .message{font-size:12px;line-height:1.5;margin-bottom:7px}
#app[data-desktop-layout="floating"] .messages-panel #messages{min-height:48px}
.camera-controls{display:flex;align-items:center;gap:3px;margin:0 8px;font-size:10px;white-space:nowrap;color:#c7b0de}
.camera-controls button{min-width:25px;height:24px;padding:2px 6px;font-size:11px;border-radius:5px;background:#281d39;border:1px solid #6b5185;color:#efddf8}
.camera-controls button:hover{border-color:#e5bd89}.camera-controls .camera-follow-on{border-color:#b6966c;color:#f5d5a5}
.camera-controls output{min-width:35px;text-align:center;letter-spacing:.4px;font-variant-numeric:tabular-nums}
#worldArt{will-change:transform;transform-origin:center center}
@media(max-width:980px){.camera-controls{display:flex;flex-wrap:wrap}.twitch-feed-panel.twitch-popout{width:min(360px,94vw);height:260px}}
@media(max-height:740px) and (min-width:981px){#app[data-desktop-layout="floating"] .stream-card .twitch-feed-panel{height:92px}}
/* Keep stream status separate from the compact preview art and optional Twitch feed. */
@media(min-width:981px){
 #app[data-desktop-layout="floating"] .stream-card .stream-visual{gap:2px}
 #app[data-desktop-layout="floating"] .stream-card .stream-orbit{font-size:29px;line-height:1}
 #app[data-desktop-layout="floating"] .stream-card .stream-visual small{display:none}
 #app[data-desktop-layout="floating"] .stream-card .stream-caption{min-height:20px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
