@import url('./live-watch.css');
.live-watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; max-width: 1764px; margin: 0 auto; }
.live-watch-layout > .live-watch { min-width: 0; width: 100%; }
.live-chat { position: relative; display: flex; flex-direction: column; height: min(720px, calc(100dvh - var(--header-height) - 64px)); min-height: 440px; overflow: hidden; border: 1px solid #303030; border-radius: 12px; background: #121212; color: #eee; }
.live-chat button { font: inherit; cursor: pointer; }
.live-chat button:disabled { cursor: default; opacity: .45; }
.live-chat button:focus-visible, .live-chat summary:focus-visible, .live-chat [role='log']:focus-visible { outline: 2px solid #eee; outline-offset: -2px; }
.live-chat-heading { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #292929; }
.live-chat-heading h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.live-chat-heading [data-chat-connection] { display: inline-flex; align-items: center; gap: 5px; color: #999; font-size: 10px; }
.live-chat-heading [data-state='connected']::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #75c891; }
.live-chat-manage { flex: 0 0 auto; padding: 8px 10px; min-height: 36px; border: 0; border-radius: 7px; background: #242424; color: #ddd; font-size: 11px !important; }
.live-chat-manage svg { display: none; }
.live-chat-conversation { position: relative; flex: 1 1 auto; min-height: 0; }
.live-chat-messages { height: 100%; overflow: auto; padding: 12px 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.live-chat-message { position: relative; display: flex; gap: 9px; align-items: start; padding: 7px 8px; border-radius: 7px; }
.live-chat-avatar { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background:var(--avatar-background, #555); color:#fff; font-size: 11px; font-weight: 700; }
.live-chat-message-copy { min-width: 0; flex: 1; padding-right: 25px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.live-chat-message-copy strong { color: #bbb; font-size: 11px; font-weight: 650; }
.live-chat-handle { display: none; }
.live-chat-message-copy p { margin: 2px 0 0; white-space: pre-wrap; color: #eee; }
.live-chat-message-actions summary { position: absolute; top: 7px; right: 8px; display: grid; place-items: center; width: 25px; min-height: 28px; border-radius: 5px; list-style: none; color: #aaa; font-size: 10px; cursor: pointer; }
.live-chat-message-actions summary::-webkit-details-marker { display: none; }
.live-chat-message-actions[open] summary { background: #292929; }
.live-chat-message-actions > div { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin: 8px -25px 0 0; border: 1px solid #363636; border-radius: 8px; background: #202020; }
.live-chat-message-actions button { border: 0; background: transparent; color: #ddd; padding: 8px; min-height: 36px; border-radius: 4px; text-align: left; font-size: 10px; line-height: 1.4; }
.live-chat-empty { position: absolute; inset: 36px 16px auto; margin: 0; text-align: center; color: #888; font-size: 12px; pointer-events: none; }
.live-chat-new { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px); padding: 8px 14px; border: 1px solid #555; border-radius: 20px; background: #f3f3f3; color: #171717; box-shadow: 0 3px 12px #0005; font-size: 11px !important; white-space: nowrap; }
.live-chat-footer { flex: 0 0 auto; border-top: 1px solid #292929; padding: 12px 14px; }
.live-chat-notice { font-size: 10px; line-height: 1.5; color: #999; margin: 0 0 10px; }
.live-chat form { padding: 8px 10px 5px; border: 1px solid #383838; border-radius: 10px; background: #1c1c1c; }
.live-chat textarea { display: block; width: 100%; min-height: 40px; max-height: 120px; resize: none; overflow-y: hidden; border: 0; padding: 0; background: transparent; color: #eee; font: inherit; font-size: 12px; line-height: 1.5; }
.live-chat textarea::placeholder { color: #888; }
.live-chat textarea:focus { outline: none; box-shadow: none; }
.live-chat textarea:disabled { opacity: .5; }
.live-chat [data-chat-form] { position: relative; }
.live-chat [data-chat-form]:has(textarea:focus-visible) { border-color: #808088; box-shadow: 0 0 0 1px #808088; }
.live-chat-mentions { position: absolute; inset: auto -1px calc(100% + 6px); z-index: 4; max-height: 220px; overflow: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid #484848; border-radius: 10px; background: #242424; box-shadow: 0 6px 24px #0008; }
.live-chat-mentions[hidden] { display: none; }
.live-chat-mentions [role='option'] { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 46px; padding: 7px 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.live-chat-mentions [aria-selected='true'], .live-chat-mentions [role='option']:hover { background: #3a3a3a; }
.live-chat-mentions strong { font-size: 12px; color: #fff; }
.live-chat-mentions span { font-size: 11px; color: #bbb; }
.live-chat .chat-mention { color: #a8d4ff; background: #245a822e; border-radius: 3px; font-weight: 650; }
.live-chat-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-chat-compose-actions span { font-size: 10px; color: #888; }
.live-chat-compose-actions [data-over='true'] { color: #ffaaaa; }
.live-chat-compose-actions button { display: grid; place-items: center; width: 36px; height: 34px; padding: 7px; border: 0; border-radius: 8px; background: #eee; color: #191919; }
.live-chat-compose-actions button svg { width: 20px; height: 20px; }
.live-chat-feedback { color: #cfcfcf; font-size: 11px; line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.live-chat-feedback:empty { display: none; }
.live-chat-signin { display: block; text-align: center; padding: 11px; border: 1px solid #484848; border-radius: 9px; font-size: 12px; font-weight: 650; color: #eee; }
.live-chat-signin-alternative { margin-top: 10px; padding: 0; border: 0; color: #aaa; font-size: 10px; font-weight: 500; }
.live-chat-guest-badge { display: inline-block; margin-left: 5px; padding: 1px 5px; border: 1px solid #4b454d; border-radius: 4px; color: #bfb3c1; font-size: 9px; line-height: 1.5; font-weight: 500; vertical-align: baseline; }
.live-chat-role-badge { display: inline-block; margin-inline-start: 5px; padding: 1px 5px; border-radius: 4px; font-size: 9px; line-height: 1.5; font-weight: 650; vertical-align: baseline; }
.live-chat-role-badge[data-chat-role='admin'] { background: #802638; color: #ffe8ed; }
.live-chat-role-badge[data-chat-role='global-moderator'] { background: #583a85; color: #f1e8ff; }
.live-chat-role-badge[data-chat-role='moderator'] { background: #195b48; color: #d5ffed; }
.live-chat-role-badge[data-chat-role='content-creator'] { background: #795313; color: #fff0cd; }
.live-chat-points { color: #e4c57c; font-size: 11px; margin: 0 0 8px; }
.live-chat-message-menu { position: absolute; inset: 7px 6px auto auto; width: 30px; min-height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #bbb; }
.live-chat-action-dialog { width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 20px; border: 1px solid #494949; border-radius: 14px; background: #1c1c1c; color: #eee; box-shadow: 0 16px 64px #0009; }
.live-chat-action-dialog[hidden] { display: none; }
.live-chat-action-dialog::backdrop { background: #0008; }
.live-chat-action-body { padding: 12px; background: #111; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.live-chat-action-buttons { display: grid; gap: 8px; }
.live-chat-action-buttons button { min-height: 44px; padding: 10px 14px; border: 1px solid #4a4a4a; border-radius: 8px; background: #292929; color: #eee; text-align: start; font: inherit; font-size: 13px; cursor: pointer; }
.live-chat-action-dialog [data-chat-action-feedback] { font-size: 12px; overflow-wrap: anywhere; }
.live-chat-settings { display: flex; gap: 8px; align-items: end; margin-bottom: 18px; }
.live-chat-settings label { flex: 1; font-size: 12px; }
.live-chat-settings select { display: block; width: 100%; margin-top: 6px; padding: 8px; background: #242424; color: #eee; border: 1px solid #555; border-radius: 6px; }
.live-chat-settings button { padding: 9px; background: #333; color: #eee; border: 1px solid #555; border-radius: 6px; }
.live-chat-guest-form label { display: block; margin: 1px 0 7px; font-size: 12px; font-weight: 650; color: #ddd; }
.live-chat-guest-form input { width: 100%; min-height: 38px; border: 1px solid #484848; border-radius: 7px; padding: 8px 10px; background: #131313; color: #eee; font: inherit; font-size: 13px; }
.live-chat-name-hint { display: block; margin: 7px 0 10px; color: #999; font-size: 10px; line-height: 1.5; }
.live-chat-name-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.live-chat-name-actions button { min-height: 36px; border: 0; border-radius: 7px; padding: 8px 12px; background: #eee; color: #171717; font-size: 11px; font-weight: 650; }
.live-chat-name-actions [data-chat-name-cancel] { background: #333; color: #ddd; }
.live-chat-identity { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.live-chat-identity > span { min-width: 0; display: flex; gap: 6px; align-items: center; }
.live-chat-identity .live-chat-guest-badge { margin-left: 0; flex: 0 0 auto; }
.live-chat-identity strong { min-width: 0; font-size: 11px; color: #ccc; overflow-wrap: anywhere; }
.live-chat-identity button { flex: 0 0 auto; padding: 5px 0 5px 5px; border: 0; background: transparent; color: #aaa; font-size: 10px; }
.live-chat-guest-form input:focus-visible { outline: 2px solid #eee; outline-offset: 1px; }
@media (max-width: 700px) { .live-chat-guest-form input { font-size: 16px; } .live-chat-name-actions button, .live-chat-identity button { min-height: 44px; } }
.live-chat-retry { margin-top: 8px; padding: 7px 10px; border: 1px solid #555; border-radius: 6px; background: transparent; color: #ddd; font-size: 11px !important; }
.live-chat-moderation { position: absolute; inset: 72px 0 0; z-index: 5; overflow: auto; padding: 16px; background: #171717; }
.live-chat-moderation-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-chat-moderation-heading h3 { font-size: 14px; margin: 0; }
.live-chat-moderation-heading button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #2a2a2a; color: #ddd; font-size: 24px; }
.live-chat-moderation > p, .live-chat-empty-restrictions { margin-top: 12px; color: #999; font-size: 11px; line-height: 1.6; }
.live-chat-restriction { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #303030; }
.live-chat-restriction > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-chat-restriction strong { display: block; font-size: 12px; }
.live-chat-restriction span { display: block; margin-top: 4px; font-size: 10px; color: #aaa; }
.live-chat-restriction button { max-width: 105px; padding: 8px; border: 1px solid #555; border-radius: 6px; background: #262626; color: #ddd; font-size: 10px; line-height: 1.4; }
.live-chat-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 10px; color: #aaa; }
.live-chat-pages button { padding: 8px; border: 1px solid #444; border-radius: 6px; background: #262626; color: #ddd; font-size: 10px; }
@media (hover: hover) { .live-chat-message:hover { background: #ffffff04; } .live-chat-message-actions button:hover, .live-chat-manage:hover { background: #383838; } }
@media (max-width: 1100px) { .live-watch-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; } .live-chat { height: 480px; min-height: 360px; } }
@media (max-width: 700px) {
  .live-watch-layout > .live-watch { display: contents; width: auto; margin: 0; }
  .live-watch-layout > .live-watch > .live-video-shell { width: calc(100% + 32px); margin-inline: -16px; }
  .live-watch-layout > .live-watch > .live-watch-info { margin-inline: -16px; }
  .live-chat { height: 440px; border-radius: 10px; margin-bottom: 18px; }
  .live-chat-heading { padding: 14px; }
  .live-chat textarea { font-size: 16px; }
  .live-chat-message-copy { font-size: 13px; }
  .live-chat-message-actions button { min-height: 44px; }
  .live-chat-message-actions summary { min-height: 36px; }
}
