.chat-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);background:#0d1118}
.chat-tabs button{padding:12px 8px;border:0;border-bottom:3px solid transparent;background:transparent;color:#aeb9c8;font:inherit;font-size:.88rem;font-weight:800;cursor:pointer}
.chat-tabs button[aria-selected="true"]{border-color:#ee3d47;background:#171c25;color:#fff}
.chat-tabs button:focus-visible,.emoji-picker-toggle:focus-visible,.chat-send-row button:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.station-chat-panel{position:relative;display:flex;flex-direction:column;height:520px;max-height:70vh;background:#0a0d12}
.station-chat-messages{flex:1;min-height:170px;overflow-y:auto;padding:15px;scrollbar-color:#555d6c #0a0d12}
.chat-empty{margin:24px 0!important;color:#aeb9c8;text-align:center;font-size:.9rem}
.chat-message{margin-bottom:13px;padding:10px 12px;border:1px solid #292e38;border-radius:12px;background:#151a23;overflow-wrap:anywhere}
.chat-message-head{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.chat-message-head strong{max-width:58%;overflow:hidden;color:#ff666d;font-size:.85rem;text-overflow:ellipsis;white-space:nowrap}
.chat-message-head time{color:#98a4b3;font-size:.75rem}
.chat-message p{margin:0;color:#f0f2f6;font-size:.92rem;line-height:1.45;white-space:pre-wrap}
.chat-delete{margin-left:auto;padding:2px 5px;border:0;background:transparent;color:#c8d0dc;font-size:.72rem;cursor:pointer}
.chat-delete:hover{color:#ff7b84}
.station-chat-form{display:flex;flex-direction:column;gap:6px;padding:13px 14px 14px;border-top:1px solid #333a46;background:#10151d}
.station-chat-form label{color:#cdd5df;font-size:.77rem;font-weight:750}
.station-chat-form input,.station-chat-form textarea{width:100%;padding:9px 10px;border:1px solid #434c5b;border-radius:9px;background:#070a0f;color:#fff;font:inherit;font-size:.88rem;resize:vertical}
.station-chat-form input:focus,.station-chat-form textarea:focus{outline:2px solid #e44852;outline-offset:1px}
.chat-emoji-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.chat-emoji-row button{min-width:36px;min-height:34px;border:1px solid #3b4350;border-radius:8px;background:#1b2430;font-size:1.1rem;cursor:pointer}
.chat-emoji-row button:hover{background:#313e50}
.chat-emoji-row .emoji-picker-toggle{flex:1;padding:0 8px;color:#fff;font:inherit;font-size:.72rem;font-weight:800;white-space:nowrap}
.emoji-picker{position:absolute;z-index:5;top:12px;right:9px;bottom:auto;left:9px;max-height:min(340px,60vh);padding:11px;border:1px solid #586273;border-radius:13px;background:#171d27;box-shadow:0 16px 32px rgba(0,0,0,.6)}
.emoji-picker[hidden]{display:none}
.emoji-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#fff;font-size:.9rem}
.emoji-picker-head button{border:0;background:transparent;color:#fff;font-size:1.4rem;line-height:1;cursor:pointer}
.emoji-picker-categories{display:flex;gap:4px;margin-bottom:8px}
.emoji-picker-categories button{flex:1;padding:6px 2px;border:1px solid #444d5c;border-radius:7px;background:#222b38;color:#ccd4df;font:inherit;font-size:.71rem;cursor:pointer}
.emoji-picker-categories button[aria-pressed="true"]{border-color:#e84b55;background:#5a262c;color:#fff}
.emoji-picker input{margin-bottom:8px}
.emoji-picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;max-height:165px;overflow-y:auto}
.emoji-picker-grid button{min-height:36px;border:0;border-radius:6px;background:#252e3c;color:#fff;font-size:1.2rem;cursor:pointer}
.emoji-picker-grid button:hover,.emoji-picker-grid button:focus-visible{background:#4b586a;outline:2px solid #f46a71}
.emoji-picker-grid p{grid-column:1/-1;padding:10px;color:#d4dae4;font-size:.8rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chat-send-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:35px}
.chat-send-row span{color:#f7a5a9;font-size:.76rem;line-height:1.3}
.chat-send-row button{flex:none;padding:9px 14px;border:0;border-radius:8px;background:#d42d37;color:#fff;font:inherit;font-size:.83rem;font-weight:850;cursor:pointer}
.chat-send-row button:disabled{opacity:.55;cursor:wait}
.youtube-chat-panel[hidden],.station-chat-panel[hidden]{display:none}
.youtube-chat-panel .chat-frame{height:520px;min-height:0}
@media(max-width:900px){.station-chat-panel{height:500px;max-height:none}.youtube-chat-panel .chat-frame{height:500px}}
