:root {
  --bg: #08090b;
  --panel: #101115;
  --panel2: #17181e;
  --border: #292b33;
  --text: #f5f5f7;
  --muted: #9699a5;
  --green: #79c142;
  --twitch: #9146ff;
  --youtube: #ff0033;
  --kick: #53fc18;
  --vod-width: 230px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: -webkit-small-control;
}

.live-shell {
  min-height: 100vh;
  padding: var(--top-h) var(--chat-width) 0 var(--vod-width);
  background: radial-gradient(circle at 50% 0, #151822 0, #090a0d 40%, #07080a 100%);
  transition:
    padding-left 0.22s ease,
    padding-right 0.22s ease;
}

.live-main {
  min-width: 0;
  padding: 18px 20px 24px;
}

.platform-tabs {
  position: fixed;
  z-index: 1100;
  left: 0;
  right: var(--chat-width);
  top: 0;
  height: var(--top-h);
  display: grid;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #262831;
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px #0005;
  transition: right 0.22s ease;
}

.live-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.live-brand-icon {
  display: block;
  width: 110px;
  height: 50px;
  object-fit: contain;
  border-radius: 7px;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.live-brand:hover .live-brand-icon {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.platform-tabs-group {
  justify-self: anchor-center;
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #292b33;
  border-radius: 13px;
  background: #07080a;
}

.platform-tab,
.vods-button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #a9abb4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.16s;
}

.platform-tab:hover,
.vods-button:hover {
  background: #1c1e24;
  color: #fff;
}

.platform-tab.active {
  background: #202229;
}

.platform-tab.twitch.active,
.platform-tab.youtube.active,
.platform-tab.kick.active {
  border-color: transparent;
  box-shadow: none;
}

.platform-brand-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.platform-brand-icon svg {
  width: 18px;
  height: 18px;
}

.twitch-logo {
  color: #a970ff;
}

.youtube-logo {
  color: #ff0033;
}

.kick-logo {
  background: #53fc18;
  color: #071006;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 950;
}

.vods-button {
  justify-self: end;
  background: #17191f;
  color: #ffffff;
}

.vods-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #071006;
  font-size: 8px;
}

.vod-sidebar {
  position: fixed;
  z-index: 1050;
  left: 0;
  top: var(--top-h);
  bottom: 0;
  width: var(--vod-width);
  display: flex;
  flex-direction: column;
  background: #0c0d10;
  border-right: 1px solid #262831;
  transition: transform 0.22s ease;
}

.vod-sidebar-head {
  height: 64px;
  padding: 0 12px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #24262d;
}

.vod-sidebar-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vod-sidebar-head span {
  font-size: 9px;
  color: #777b87;
}

.vod-sidebar-head button {
  width: 32px;
  height: 32px;
  border: 1px solid #2d3038;
  border-radius: 9px;
  background: #17191e;
  color: #cfd1d8;
  cursor: pointer;
}

.vod-sidebar-head button:hover {
  background: #22252c;
  color: #fff;
}

.vod-list {
  overflow-y: auto;
  padding: 10px 9px;
}

.vod-item {
  padding: 7px;
  margin-bottom: 5px;
  transition: 0.15s;
}

.vod-item:hover {
  background: #181a20;
}

.vod-thumb {
  position: relative;
  background: #1a1b20 center/cover no-repeat;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff0d;
}

.vod-thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, #000a);
}

.vod-thumb span {
  position: absolute;
  z-index: 1;
  left: 9px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #79c14200;
  color: #071006;
  font-size: 8px;
}

.vod-copy {
  padding: 7px 2px 2px;
}

.vod-copy strong {
  font-size: 11px;
}

.vod-copy span {
  font-size: 9px;
  color: #858995;
}

.vod-all {
  margin: 8px 10px 12px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;

  border-radius: 9px;
  background: #15171c;
  font-size: 10px;
  font-weight: 800;
}

.vod-all:hover {
  border-color: #0c0d10;
  background: #1c1f26;
}

.vod-empty {
  padding: 15px;
  color: #858995;
  font-size: 11px;
}

.vod-sidebar-open {
  display: none;
  position: fixed;
  z-index: 1060;
  left: 10px;
  top: 76px;
  height: 36px;
  border: 0px solid #0a0c0e;
  border-radius: 9px;
  background: #17191f;
  color: #ffffff;
  padding: 0 11px;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.vods-hidden {
  padding-left: 0;
}

.vods-hidden .vod-sidebar {
  transform: translateX(-100%);
}

.vods-hidden .vod-sidebar-open {
  display: block;
}

.live-stage {
  display: flex;
  justify-content: center;
}

.live-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: calc(100vh - var(--top-h) - 185px);
  background: #000;
  border: 0px solid #2a2c34;
  overflow: hidden;
  box-shadow:
    0 18px 55px #0008,
    0 0 0 1px #ffffff05;
}

.live-player iframe,
#twitchInteractivePlayer,
#youtubeInteractivePlayer,
#twitchInteractivePlayer iframe,
#youtubeInteractivePlayer iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
  background: #080808;
}

.player-placeholder p {
  color: #aaa;
}

.stream-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.stream-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.stream-name-row strong {
  font-size: 14px;
}

.live-badge {
  padding: 3px 6px;
  border-radius: 5px;
  background: #e91916;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.live-badge.offline {
  background: #333640;
  color: #b8bbc5;
}

.stream-copy h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9195a1;
  font-size: 9px;
}

.category-pill {
  padding: 3px 7px;
  border-radius: 10px;
  background: #23252c;
  color: #d9dbe1;
}

.streamViewers {
  color: #ff7070;
}

.stream-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stream-links a {
  height: 34px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border: 1px solid #30333b;
  border-radius: 9px;
  background: #181a20;
  color: #c9cbd2;
  font-size: 10px;
  font-weight: 800;
}

.stream-links a:hover {
  background: #22252c;
  color: #fff;
}

.stream-links .donate-link {
  border-color: #416a35;
  background: #152113;
  color: #cfffba;
}

.live-chat {
  position: fixed;
  z-index: 1200;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--chat-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0c0f;
  border-left: 1px solid #292b33;
  box-shadow: -14px 0 36px #0005;
}

.live-chat-header {
  min-height: 64px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  background: #111217;
}

.chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #ddd;
  font-size: 20px;
  cursor: pointer;
}

.chat-close:hover {
  background: #24262c;
}

.chat-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-title strong {
  font-size: 14px;
}

.chat-title span {
  color: #858995;
}

.viewer-total {
  font-size: 15px;
  color: #b7b7bf;
}

.chat-platform-filter {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  border-bottom: 1px solid #25272e;
}

.filter {
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #91949e;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.filter:hover {
  background: #202229;
  color: #fff;
}

.filter.active {
  color: #fff;
}

.filter.active[data-filter="all"] {
  border-color: #496d3d;
  background: linear-gradient(110deg, #1c251a, #34582b, #1c251a);
  background-size: 220% 100%;
  animation: allGlow 3.2s ease infinite;
}

.filter.active[data-filter="twitch"] {
  background: #9146ff;
}

.filter.active[data-filter="youtube"] {
  background: #17181d;
}

.filter.active[data-filter="kick"] {
  background: #53fc18;
  color: #071006;
}

@keyframes allGlow {
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 16px #79c14230;
  }
}

.chat-pane {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0e0e10;
}

.native-chat-pane {
  position: relative;
}

.native-chat-pane iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.native-chat-pane iframe[hidden],
.native-chat-placeholder[hidden],
.unified-chat-pane[hidden],
.native-chat-pane[hidden] {
  display: none !important;
}

.native-chat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #adadb8;
  font-size: 12px;
}

.unified-chat-pane {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #45474f #111217;
}

.chat-messages::-webkit-scrollbar {
  width: 9px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #111217;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #45474f;
  border: 2px solid #111217;
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #5b5e68;
}

.chat-messages::before {
  content: "";
  margin-top: auto;
}

.chat-system {
  margin: 3px 3px 11px;
  padding: 9px 10px;
  border-left: 3px solid var(--green);
  background: #79c14212;
  font-size: 11px;
  color: #bfc0c5;
}

.chat-system.error {
  color: #ff8d8d;
}

.chat-system.ok {
  color: #a0ff57;
}

.connector-status {
  scrollbar-color: #45474f #111217;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid #25252c;
  font-size: 11px;
}

.connector-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.connector-row.connected {
  color: #a0ff57;
}

.connector-row.error {
  color: #ff8d8d;
}

.connector-row.offline,
.connector-row.unavailable {
  color: #adadb8;
}

.platform-source-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.connector-row .platform-source-logo {
  width: 13px;
  height: 13px;
}

.chat-message {
  position: relative;
  display: block;
  padding: 2px 4px;
  line-height: 1.35;
  border-radius: 4px;
}

.chat-message:hover {
  background: #18191e;
}

.chat-reply-button {
  position: absolute;
  top: 3px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #26272d;
  color: #efeff1;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s ease,
    background 0.12s ease;
}

.chat-message:hover .chat-reply-button,
.chat-reply-button:focus-visible {
  opacity: 1;
  visibility: visible;
}

.chat-reply-button:hover {
  background: #35363d;
}

.chat-message.has-reply > .chat-reply-button {
  top: 23px;
}

.chat-message > .platform-source-logo {
  display: inline;
  width: 14px;
  height: 14px;
  margin: 0 5px 0 0;
  vertical-align: 0;
}

.chat-message > .kick-source-logo {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: 0;
  font-size: 7px;
  border-radius: 3px;
}

.message-body,
.chat-message > .message-body {
  display: inline;
  min-width: 0;
}

.twitch-chat-line,
.chat-message .twitch-chat-line {
  display: inline;
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.chat-badge-live,
.chat-message .chat-badge-live {
  width: 17px;
  height: 17px;
  margin-right: 2px;
  vertical-align: -4px;
}

.chat-emote-live,
.chat-message .chat-emote-live {
  height: 24px;
  max-width: 68px;
  width: auto;
  vertical-align: -6px;
}

.chat-gif-live {
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
}

.message-meta time {
  display: none;
}

.chat-message[data-platform="youtube"] {
  padding: 2px 4px;
}

.chat-message[data-platform="youtube"] .twitch-chat-line {
  display: inline;
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
}

.youtube-author-avatar {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin: 0 4px 0 0;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -4px;
}

.youtube-author,
.chat-message[data-platform="youtube"] .chat-text {
  font-size: 13px;
  line-height: 1.38;
}

.kick-emote-live {
  height: 24px;
  max-width: 68px;
  vertical-align: -6px;
  object-fit: contain;
}

.chat-scroll-pause {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 128px;
  z-index: 20;
  min-height: 38px;
  border: 2px solid #535353;
  border-radius: 15px;
  background: #161616;
  color: #ffffff;
}

.chat-scroll-pause[hidden] {
  display: none !important;
}

.chat-open {
  display: none;
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 1300;
  border: 1px solid #444;
  border-radius: 9px;
  background: #242428;
  color: #fff;
  padding: 8px 11px;
  font-weight: 800;
}

.chat-hidden {
  padding-right: 0;
}

.chat-hidden .live-chat {
  display: none;
}

.chat-hidden .chat-open {
  display: block;
}

.chat-hidden .platform-tabs {
  right: 0;
}

.drawer-open .side-drawer {
  display: none;
}

@media (max-width: 1200px) {
  :root {
    --vod-width: 205px;
    --chat-width: 360px;
  }

  .stream-links a {
    padding: 0 8px;
  }
}

@media (max-width: 980px) {
  .live-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .platform-tabs {
    right: 0;
  }

  .vod-sidebar,
  .vod-sidebar-open {
    display: none;
  }

  .live-main {
    padding: 12px;
  }

  .stream-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-chat {
    position: relative;
    width: 100%;
    height: 560px;
  }

  .chat-hidden .live-chat {
    display: none;
  }

  .chat-open {
    position: static;
    margin: 10px 12px;
  }

  .vods-hidden {
    padding-left: 0;
  }
}

@media (max-width: 650px) {
  .platform-tabs {
    padding: 0 8px;
    gap: 5px;
  }

  .live-brand-icon {
    width: 30px;
    height: 30px;
  }

  .platform-tabs-group {
    gap: 1px;
  }

  .platform-tab {
    padding: 0 8px;
  }

  .platform-brand-icon {
    width: 18px;
  }

  .vods-button {
    padding: 0 8px;
    font-size: 0;
  }

  .stream-links {
    width: 100%;
    justify-content: flex-start;
  }

  .stream-copy h1 {
    white-space: normal;
  }

  .stream-card {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .filter.active[data-filter="all"] {
    animation: none;
  }
}

:root {
  --support-width: 340px;
  --vod-width: 244px;
  --chat-width: 390px;
  --top-h: 64px;
}

.live-brand {
  min-width: 110px;
}

.platform-tabs {
  grid-template-columns: var(--vod-width) 1fr auto auto auto;
}

.platform-tabs-group {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.platform-tab {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #a7a9b0;
  filter: grayscale(1);
  opacity: 0.82;
}

.platform-tab:hover {
  background: #17181d;
  color: #fff;
  opacity: 1;
}

.platform-tab.active {
  background: #17181d;
  color: #fff;
  filter: none;
  opacity: 1;
  border-color: transparent;
  box-shadow: none;
}

.platform-tab:not(.active) .platform-brand-icon {
  filter: grayscale(1);
  opacity: 0.82;
}

.platform-tab.active .platform-brand-icon {
  filter: none;
  opacity: 1;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions .vods-button {
  justify-self: auto;
}

.top-actions .chat-open {
  position: static;
  right: auto;
  top: auto;
  z-index: auto;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #424650;
  border-radius: 9px;
  background: #17191f;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  align-items: center;
  justify-content: center;
}

.top-actions .chat-open:hover {
  background: #242731;
}

.chat-hidden .top-actions .chat-open {
  display: inline-flex;
}

.live-main {
  padding: 16px 18px 4px;
}

.live-player {
  border-radius: 14px;
  max-height: calc(100vh - var(--top-h) - 330px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(145, 70, 255, 0.1);
}

.vod-sidebar {
  overflow: hidden;
}

.vod-sidebar-head {
  height: 58px;
  flex: 0 0 58px;
  padding: 0 12px 0 14px;
}

.vod-sidebar-head strong {
  font-size: 13px;
  line-height: 1.1;
}

.vod-sidebar-head span {
  font-size: 8px;
}

.vod-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vod-item {
  display: block;
  min-height: 0;
  padding: 6px;
  margin: 0;
  border-radius: 10px;
}

.vod-item:hover {
  background: #17191f;
}

.vod-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.vod-thumb span {
  left: 6px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 7px;
}

.vod-copy {
  display: flex;
  flex-direction: column;
  padding: 7px 2px 1px;
  gap: 3px;
  min-width: 0;
}

.vod-copy strong {
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.vod-copy span {
  font-size: 8px;
  line-height: 1.2;
  color: #898d98;
}

.vod-all {
  flex: 0 0 34px;
  height: 34px;
  margin: 6px 10px 10px;
  font-size: 11px;
  margin-top: auto;
}

.stream-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.stream-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.stream-avatar {
  width: 70px;
  height: 70px;
  padding: 0;
}

.stream-avatar img {
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #17181e;
}

.stream-name-row strong {
  font-size: 18px;
  line-height: 1;
}

.live-badge {
  font-size: 9px;
  padding: 4px 7px;
}

.stream-copy h1 {
  margin: 6px 0 8px;
  width: 100%;
  max-width: none;
  font-size: 15px;
  line-height: 1.3;
}

.stream-meta {
  font-size: 15px;
}

.category-pill {
  padding: 4px 9px;
}

#streamViewers {
  color: #d3d5dc;
}

#streamViewers b {
  color: #ffffff;
}

.viewer-total {
  display: none;
}

.stream-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sub-action {
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 100px;
  background: #9146ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: 0.15s;
}

.sub-action:hover {
  background: #772ce8;
}

.sub-action .sub-gift-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sub-action .sub-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.sub-action span {
  font-size: 12px;
  margin: 0;
}

.live-chat {
  min-width: 0;
}

.live-chat-header {
  min-height: 68px;
  grid-template-columns: 34px 1fr auto;
  background: #101116;
}

.chat-title {
  align-items: flex-start;
}

.chat-title strong {
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.chat-title span {
  font-size: 8px;
}

.chat-platform-filter {
  padding: 7px 9px;
  background: #0d0e11;
}

.filter {
  height: 29px;
  border-radius: 100px;
  font-size: 8px;
}

.chat-reply-preview {
  font-size: 10px;
  line-height: 1.25;
  color: #8f929c;
  margin: 0 0 2px;
  font-weight: 500;
  opacity: 0.9;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chat-reply-preview + .twitch-chat-line {
  font-size: 13px;
  line-height: 1.45;
}

.chat-composer {
  padding: 7px 10px 12px;
  border-top: 1px solid #303037;
  background: #101116;
  min-width: 0;
  max-width: 100%;
}

.composer-reference,
.composer-input-row,
.composer-box,
.composer-bottom {
  min-width: 0;
  max-width: 100%;
}

.composer-reference {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer-followers {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 0 solid #363842;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  margin-bottom: -6px;
  background: #17181e;
  color: #b7bac3;
  font-size: 9px;
  font-weight: 700;
}

.gift-icon {
  color: #b879ff;
  font-size: 10px;
}

.composer-input-row {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.composer-box {
  min-height: 40px;
  border: 1px solid #a2a2a2;
  border-radius: 5px;
  background: #18181b;
}

.universal-composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  width: 100%;
  overflow: visible;
  padding: 0 10px;
  gap: 4px;
}

.composer-reply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 2px 6px 0;
  color: #efeff1;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.composer-reply[hidden] {
  display: none;
}

.composer-reply span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-reply span::before {
  content: "↩";
  display: inline-block;
  margin-right: 7px;
  font-size: 16px;
  vertical-align: -1px;
}

.composer-reply strong {
  color: #efeff1;
  font-weight: 700;
}

.composer-reply button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #adadb8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.composer-reply button:hover {
  background: #2f3037;
  color: #fff;
}

.chat-composer textarea {
  min-width: 0;
  width: 100%;
  height: 38px;
  max-height: 76px;
  padding: 12px 5px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.composer-emoji {
  width: 30px;
  border: 0;
  background: transparent;
  color: #d7d8de;
  font-size: 17px;
  cursor: pointer;
}

.send-button {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #9146ff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.send-button:not(:disabled):hover {
  background: #a970ff;
}

.send-button:disabled {
  background: #292a31;
  color: #666973;
}

.composer-bottom {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
  overflow: hidden;
}

.source-badge,
.source-badge.twitch,
.source-badge.youtube,
.source-badge.kick {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: #1a1b20;
  color: #cfd1d8;
}

.source-badge img,
.source-badge svg,
.source-badge .platform-source-logo {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.source-badge .twitch-source-logo,
.platform-source-logo.twitch-source-logo {
  color: #8e44f9;
}

.source-badge .youtube-source-logo,
.platform-source-logo.youtube-source-logo {
  color: #ff0000;
}

.source-badge .kick-source-logo,
.platform-source-logo.kick-source-logo {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #53fc18;
  color: #071006;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.chat-scroll-pause {
  bottom: 105px;
}

.side-drawer {
  display: none;
  position: fixed;
  z-index: 1190;
  top: 0;
  bottom: 0;
  right: var(--chat-width);
  width: var(--support-width);
  background: #111217;
  border-left: 1px solid #30323b;
  border-right: 1px solid #30323b;
  box-shadow: -18px 0 38px #0007;
}

.drawer-open .side-drawer {
  display: flex;
  flex-direction: column;
}

.drawer-open {
  padding-right: calc(var(--chat-width) + var(--support-width));
}

.drawer-open .platform-tabs {
  right: calc(var(--chat-width) + var(--support-width));
}

.side-drawer-header {
  min-height: 64px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2d35;
}

.side-drawer-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-drawer-header strong {
  font-size: 14px;
}

.side-drawer-header span {
  font-size: 9px;
  color: #9295a0;
}

.side-drawer-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.side-drawer-header button:hover {
  background: #262831;
}

.side-drawer-body {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-avatar-img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #9146ff;
  box-shadow: 0 0 0 5px #21172d;
}

.side-drawer-body h2 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.side-drawer-body p {
  margin: 0 0 20px;
  color: #b0b2bc;
  font-size: 12px;
  line-height: 1.5;
}

.support-primary {
  width: 100%;
  height: 42px;
  border-radius: 9px;
  background: #9146ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.support-primary:hover {
  background: #a970ff;
}

.side-drawer-body small {
  margin-top: 13px;
  color: #777b87;
  font-size: 9px;
  line-height: 1.5;
}

@media (min-width: 1500px) {
  :root {
    --vod-width: 255px;
    --chat-width: 400px;
    --support-width: 360px;
  }

  .live-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .live-player {
    max-height: calc(100vh - var(--top-h) - 350px);
  }

  .vod-sidebar-head {
    height: 60px;
    flex-basis: 60px;
  }

  .vod-list {
    padding: 10px 11px 6px;
    gap: 7px;
  }

  .vod-copy strong {
    font-size: 14px;
  }

  .vod-copy span {
    font-size: 12px;
  }
}

@media (max-width: 1350px) {
  :root {
    --vod-width: 218px;
    --chat-width: 360px;
  }

  .vod-copy strong {
    font-size: 9px;
  }

  .vod-copy span {
    font-size: 7.5px;
  }

  .live-player {
    max-height: calc(100vh - var(--top-h) - 305px);
  }
}

@media (max-width: 1100px) {
  .drawer-open {
    padding-right: var(--chat-width);
  }

  .drawer-open .platform-tabs {
    right: var(--chat-width);
  }

  .side-drawer {
    right: 0;
    width: var(--chat-width);
    z-index: 1300;
  }
}

@media (max-width: 980px) {
  :root {
    --vod-width: 0px;
    --chat-width: 100%;
  }

  .platform-tabs {
    grid-template-columns: auto 1fr auto;
  }

  .live-brand {
    min-width: auto;
  }

  .top-actions {
    gap: 5px;
  }

  .top-actions .chat-open,
  .top-actions .vods-button {
    height: 36px;
    padding: 0 9px;
  }

  .vod-sidebar {
    display: none;
  }

  .stream-channel-row {
    align-items: flex-start;
  }

  .stream-main-info {
    min-width: 0;
  }

  .drawer-open {
    padding-right: 0;
  }

  .drawer-open .platform-tabs {
    right: 0;
  }

  .side-drawer {
    width: min(100%, 390px);
  }
}

@media (max-width: 650px) {
  .stream-channel-row {
    flex-direction: column;
  }

  .stream-actions {
    width: 100%;
  }

  .sub-action {
    width: 100%;
  }

  .composer-input-row {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .send-button {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }

  .composer-note {
    display: none;
  }
}

.chat-message {
  font-size: 14px;
  line-height: 1.42;
  padding: 5px 5px;
}

.twitch-chat-line,
.chat-message .twitch-chat-line,
.chat-message strong,
.chat-message .chat-author,
.chat-message .youtube-author,
.chat-message[data-platform="youtube"] .twitch-chat-line,
.chat-message[data-platform="youtube"] .chat-text {
  font-size: 16px;
  line-height: 1.42;
}

.chat-badge-live,
.chat-message .chat-badge-live {
  width: 18px;
  height: 18px;
  vertical-align: -5px;
}

.chat-emote-live,
.chat-message .chat-emote-live,
.kick-emote-live {
  height: 28px;
  max-width: 80px;
  vertical-align: -8px;
  object-fit: contain;
}

.youtube-author-avatar {
  width: 18px;
  height: 18px;
  margin: 0 5px 0 0;
  vertical-align: -5px;
}

.chat-gif-live,
.twitch-chat-line .chat-gif-live,
.message-body .chat-gif-live,
.chat-message .chat-gif-live {
  display: block !important;
  clear: both;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 190px;
  margin: 6px 0 5px 20px !important;
  border-radius: 6px;
  object-fit: contain;
  vertical-align: initial;
}

.chat-reply-preview {
  font-size: 11px;
  line-height: 1.3;
  margin: 1px 20px 5px 20px;
}

.chat-reply-preview + .twitch-chat-line {
  font-size: 14px;
  line-height: 1.42;
}

.live-player {
  max-height: calc(100vh - var(--top-h) - 165px);
}

.stream-card {
  margin-top: 10px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  .live-player {
    max-height: none;
  }
}

.chat-system.chat-notice-live {
  margin: 6px 8px;
  padding: 8px 10px;
  border-left: 3px solid #8bc34a;
  border-radius: 4px;
  background: rgba(139, 195, 74, 0.08);
  color: #dedee3;
  font-size: 13px;
  line-height: 1.45;
}

.chat-system.ok.chat-notice-live {
  color: #dedee3;
}

.chat-notice-live-icon {
  display: inline-block;
  margin: 0 6px 0 0;
  vertical-align: 0;
}

.chat-notice-live-text {
  color: #dedee3;
}

.chat-notice-live-text strong,
.chat-notice-live-text b {
  color: #8bc34a;
  font-weight: 700;
}

.live-chat-header {
  align-items: center;
}
.chat-head-actions {
  margin-left: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.account-connect-hint {
  font-size: 10px;
  line-height: 2;
  text-align: center;
  opacity: 0.72;
}
.account-connections {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
}
.account-connections[hidden],
.account-connect-hint[hidden] {
  display: none !important;
}
.account-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  width: auto !important;
  height: 30px;
  padding: 4px 7px !important;
  gap: 4px !important;
  border: 0;
  border-radius: 8px;
  background: #191a20;
  color: #d8d9df;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.account-connect:hover {
  background: #24262d;
  color: #fff;
}
.account-connect span {
  font-size: 10px !important;
}
.account-connect .platform-brand-icon,
.account-connect .source-badge,
.account-connect svg {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px;
}
.account-connect .kick-source-logo {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #53fc18;
  color: #071006;
  font-size: 7px;
  font-weight: 950;
}
@media (max-width: 520px) {
  .account-connect-hint {
    max-width: 190px;
    font-size: 9px;
  }
  .account-connect {
    padding: 3px 5px !important;
  }
  .account-connect span {
    font-size: 9px !important;
  }
}

.composer-emoji {
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  display: grid !important;
  place-items: flex-start;
  border-radius: 100px !important;
  font-size: 32px !important;
}
.composer-emoji:hover,
.composer-emoji[aria-expanded="true"] {
  background: #2b2d35 !important;
}
.emoji-picker {
  position: absolute;
  right: 0;
  bottom: 48px;
  z-index: 40;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 9px;
  border: 0px solid #343640;
  border-radius: 12px;
  background: #18191f;
  box-shadow: 0 12px 34px rgb(0 0 0 / 85%);
}
.emoji-picker[hidden] {
  display: none !important;
}
.emoji-picker-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid #30323a;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.emoji-picker-tabs::-webkit-scrollbar,
.emoji-picker-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.emoji-picker-tab {
  flex: 0 0 34px;
  width: 34px !important;
  height: 30px !important;
  border: 0;
  border-radius: 7px !important;
  background: transparent;
  font-size: 17px !important;
  line-height: 30px !important;
  cursor: pointer;
}
.emoji-picker-tab:hover,
.emoji-picker-tab.active {
  background: #30323a !important;
}
.emoji-picker-body {
  max-height: 292px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.emoji-category {
  padding: 0 1px 7px;
}
.emoji-category-title {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 4px;
  padding: 4px 2px;
  background: #18191f;
  color: #aeb1bc;
  font-size: 10px;
  font-weight: 800;
}
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px;
}
.emoji-picker-grid button {
  width: 33px !important;
  height: 33px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 7px !important;
  background: transparent;
  font-size: 21px !important;
  line-height: 33px !important;
  cursor: pointer;
}
.emoji-picker-grid button:hover,
.emoji-picker-grid button:focus-visible {
  background: #30323a !important;
  outline: none;
}
@media (max-width: 420px) {
  .emoji-picker {
    width: 310px;
  }
  .emoji-picker-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.universal-composer #chatInput {
  box-sizing: border-box;
  min-height: 38px !important;
  height: 38px;
  max-height: 160px !important;
  overflow-y: hidden;
  resize: none !important;
}
.universal-composer #chatInput.chat-input-max-height {
  overflow-y: auto;
}
.composer-emoji {
  align-self: end;
  flex: 0 0 3px;
}

.chat-mention-self {
  display: inline;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgb(255 255 255);
  color: #000000;
  font-weight: 600;
}

.mention-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #3a3b42;
  border-radius: 6px;
  background: #18181b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.mention-suggestions[hidden] {
  display: none;
}

.mention-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #efeff1;
  text-align: left;
  cursor: pointer;
}

.mention-suggestion strong {
  font-size: 13px;
  font-weight: 600;
}

.mention-suggestion span {
  color: #adadb8;
  font-size: 11px;
}

.mention-suggestion:hover,
.mention-suggestion.active {
  background: #2f3037;
}

.chat-message.unified-own-message {
  display: block;
}

.chat-message.unified-own-message > .message-body {
  display: inline;
}

.live-main {
  position: relative;
}

.account-menu {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 30;
}

.account-menu-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 0px solid #5d626b;
  border-radius: 100px;
  background: #15161b;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.account-menu-toggle:hover {
  background: #1d1f25;
}

.account-menu-toggle .platform-brand-icon {
  width: 16px;
  height: 16px;
}

.account-menu-popover {
  position: absolute;
  top: 42px;
  right: 0;
  width: 270px;
  padding: 15px;
  border: 0px solid #315e42;
  border-radius: 10px;
  background: #15161b;
  box-shadow: -15px 15px 10px rgb(0 0 0 / 60%);
}

.account-menu-popover > strong {
  display: block;
  padding-right: 24px;
  color: #fff;
  font-size: 14px;
}

.account-menu-popover > p {
  margin: 5px 0 12px;
  color: #a9adb7;
  font-size: 11px;
}

.account-menu-close {
  position: absolute;
  top: 8px;
  right: 9px;
  border: 0;
  background: transparent;
  color: #777d87;
  font-size: 18px;
  cursor: pointer;
}

.account-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 39px;
}

.account-menu-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.account-menu-platform .platform-source-logo {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
}

.account-menu-row > button {
  min-width: 94px;
  height: 32px;
  padding: 0 11px;
  border: 0px solid #292c33;
  border-radius: 12px;
  background: #292c33;
  color: #d9dbe1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.account-menu-row > button:hover {
  background: #31353c;
}

.platform-tabs > .account-menu {
  position: relative;
  top: auto;
  right: auto;
  z-index: 30;
  justify-self: end;
}

.platform-tabs .account-menu-toggle {
  height: 38px;
}

.account-menu-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.platform-tabs-group {
  align-items: center;
  gap: 8px;
}

.platform-tab {
  overflow: hidden;
  min-width: 0;
  height: 38px;
  border-radius: 18px;
}

.platform-tab,
.chat-platform-filter .filter,
.account-menu-toggle {
  position: relative;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 280ms cubic-bezier(0.22, 0.8, 0.3, 1),
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

.platform-tab:hover:not(.active),
.chat-platform-filter .filter:hover:not(.active),
.account-menu-toggle:hover {
  transform: scale(1.035, 0.985);
}

.platform-tab:active,
.chat-platform-filter .filter:active,
.account-menu-toggle:active {
  transform: scale(0.97, 1.045);
  transition-duration: 110ms;
}

.platform-tab.active,
.chat-platform-filter .filter.active {
  padding-left: 14px;
  padding-right: 14px;
  transform: scale(1.055, 1.04);
}

.platform-brand-icon {
  transition:
    transform 280ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 180ms ease,
    opacity 180ms ease;
}

.platform-tab.active .platform-brand-icon {
  transform: scale(1.04);
}

.account-menu-row[hidden] {
  display: none !important;
}

.account-menu-toggle[hidden] {
  display: none !important;
}
.composer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.composer-note .platform-source-logo {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.composer-note .twitch-source-logo {
  color: #9146ff;
}

.composer-note .youtube-source-logo {
  color: #ff0000;
}

.composer-note .kick-source-logo {
  color: #071006;
  background: #53fc18;
  border-radius: 3px;
}
.platform-source-logo.kick-source-logo,
.source-badge .kick-source-logo,
.chat-message > .platform-source-logo.kick-source-logo,
.account-connect .kick-source-logo,
.composer-note .kick-source-logo {
  background: transparent !important;
  color: #53fc18 !important;
  border-radius: 0 !important;
}

.platform-brand-icon.kick-logo {
  background: transparent;
  color: #53fc18;
  border-radius: 0;
}

.platform-brand-icon.kick-logo svg {
  width: 14px;
  height: 14px;
  display: block;
}

.platform-brand-icon.twitch-logo {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-brand-icon.twitch-logo svg {
  width: 22px;
  height: 22px;
  display: block;
}

.composer-note .platform-source-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

.composer-note .twitch-source-logo {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.composer-note .youtube-source-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.composer-note .kick-source-logo {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.chat-message > .platform-source-logo {
  display: inline-block;
  margin: 0 3px 0 0;
  vertical-align: -4px;
}

.twitch-emote-button img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: auto;
}
.emoji-picker-message {
  grid-column: 1/-1;
  padding: 18px 6px;
  color: #aeb1bc;
  font-size: 12px;
  text-align: center;
}
.twitch-emote-tab {
  color: #9146ff;
  font-weight: 900;
}
.emoji-picker-tab.channel-emote-tab {
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-picker-tab.channel-emote-tab img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.emoji-picker-tab.frequent-emote-tab {
  font-size: 16px !important;
}

.chat-input-render {
  position: absolute;
  left: 10px;
  right: 44px;
  top: 0;
  min-height: 38px;
  max-height: 160px;
  padding: 8px 2px;
  overflow: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #efeff1;
  font: inherit;
  line-height: 22px;
  z-index: 2;
}
.chat-input-render .composer-twitch-emote {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin: -4px 1px;
}
.universal-composer #chatInput.chat-input-has-emotes {
  position: relative;
  z-index: 3;
  color: transparent !important;
  caret-color: transparent;
  background: transparent !important;
}
.universal-composer #chatInput.chat-input-has-emotes::selection {
  background: rgba(145, 70, 255, 0.45);
  color: transparent;
}

.chat-input-caret {
  display: inline-block;
  width: 1px;
  height: 20px;
  margin-left: 1px;
  vertical-align: -4px;
  background: #efeff1;
  animation: chat-input-caret-blink 1s step-end infinite;
}
@keyframes chat-input-caret-blink {
  50% {
    opacity: 0;
  }
}

.privacy-link {
  justify-self: end;
  margin-right: 10px;
  color: #8f939c;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.privacy-link:hover {
  color: #a7a7a7;
}

.emoji-tabs-scrollbar {
  position: relative;
  width: 100%;
  height: 5px;
  margin: -2px 0 5px;
  overflow: hidden;
  background: transparent;
}
.emoji-tabs-scrollbar[hidden] {
  display: none;
}
.emoji-tabs-scrollbar-thumb {
  position: absolute;
  left: 0;
  height: 5px;
  border-radius: 100px;
  background: #ffffff91;
  will-change: transform;
}

.emoji-picker-tabs {
  scrollbar-width: none !important;
}
.emoji-picker-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.composer-char-limit {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #ff4d4f;
}

.composer-char-limit[hidden] {
  display: none !important;
}

.composer-box:has(.chat-input-limit-exceeded) {
  border-color: #ff4d4f;
}

.chat-message > .twitch-source-logo {
  width: 21px;
  height: 21px;
}

.chat-message > .twitch-source-logo {
  width: 24px;
  height: 24px;
}

.chat-message > .platform-source-logo {
  width: 18px;
  height: 18px;
  margin-right: 2px;
  vertical-align: -5px;
}

.chat-message > .twitch-source-logo {
  width: 18px;
  height: 18px;
}

.chat-message > .kick-source-logo {
  width: 16px;
  height: 16px;
}

.platform-brand-icon.youtube-logo,
.platform-brand-icon.youtube-logo img,
.platform-source-logo.youtube-source-logo {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  object-fit: contain;
}

.chat-platform-filter .filter[data-filter="youtube"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.chat-platform-filter .youtube-filter-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.chat-message .chat-reply-preview {
  margin-left: 0;
  margin-right: 0;
}

.chat-message.has-reply .reply-main-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  vertical-align: middle;
}

.chat-message.has-reply .reply-main-line .platform-source-logo,
.chat-message.has-reply .reply-main-line .twitch-channel-icon,
.chat-message.has-reply .reply-main-line .chat-badge-live {
  display: inline-block;
  vertical-align: middle;
  margin-top: 0;
  margin-bottom: 0;
}

.platform-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.platform-actions .privacy-link {
  justify-self: auto;
  margin-right: 0;
}

.platform-actions .account-menu {
  position: relative;
  top: auto;
  right: auto;
  justify-self: auto;
}

.admin-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 100px;
  background: #15161b;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.admin-chat-button:hover {
  background: #1d1f25;
  transform: scale(1.035, 0.985);
}

.admin-chat-button:active {
  transform: scale(0.97, 1.045);
}

.chat-notice-user-message {
  display: block;
  margin-top: 5px;
  color: #dedee3;
  font-weight: 400;
}

.twitch-chat-line > .platform-source-logo {
  display: inline-block;
  vertical-align: middle;
}

.chat-text a {
  color: #79c142;
  text-decoration: underline;
  cursor: pointer;
}

.chat-text a:hover {
  color: #b3ff5b;
}

@media (max-width: 650px) {
  .stream-channel-row {
    display: none;
  }
  .platform-tabs {
    height: 56px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .live-brand {
    flex: 0 0 auto;
  }

  .live-brand-icon {
    width: 58px;
    height: 32px;
  }

  .platform-tabs-group {
    flex: 1;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .platform-tab {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
    gap: 0;
  }

  .platform-tab.active {
    padding: 0;
  }

  .platform-tab .platform-brand-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .platform-tab .youtube-logo,
  .platform-tab .youtube-logo img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }

  .platform-actions {
    flex: 0 0 auto;
    gap: 0;
  }

  .platform-actions > .privacy-link,
  .platform-actions > .admin-chat-button {
    display: none;
  }

  .platform-tabs .account-menu-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .platform-tabs .account-menu-toggle > span {
    display: none;
  }

  .account-menu-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (max-width: 650px) {
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .live-main {
    padding: 56px 0 0;
  }

  .live-stage {
    width: 100%;
  }

  .live-player {
    width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .live-chat {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(56px + (100vw * 9 / 16));
    bottom: 0;
    width: 100%;
    height: auto;
  }
}

.mobile-player-info-trigger {
  display: none;
}

@media (max-width: 650px) {
  .live-stage {
    position: relative;
  }

  .mobile-player-info-trigger {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    z-index: 5;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-player-info-open .stream-channel-row {
    display: flex;
  }

  .mobile-player-info-open .stream-card {
    position: fixed;
    z-index: 1190;
    left: 0;
    right: 0;
    top: calc(56px + (100vw * 9 / 16));
    margin: 0;
    padding: 10px 12px;
    border-radius: 0;
    background: #111217;
  }

  .mobile-player-info-open .stream-main-info {
    width: 100%;
  }

  .mobile-player-info-open .stream-actions {
    display: none;
  }

  .mobile-player-info-open .live-chat {
    top: calc(56px + (100vw * 9 / 16) + 74px);
  }
}

@media (max-width: 650px) {
  .live-chat-header {
    display: none;
  }

  .chat-open {
    display: none !important;
  }
  .live-chat {
    top: var(--mobile-player-bottom, calc(56px + (100vw * 9 / 16)));
  }

  .mobile-player-info-open .stream-card {
    top: var(--mobile-player-bottom, calc(56px + (100vw * 9 / 16)));
  }

  .mobile-player-info-open .live-chat {
    top: calc(var(--mobile-player-bottom, calc(56px + (100vw * 9 / 16))) + 74px);
  }
}

@media (max-width: 650px) {
  .mobile-player-info-open .stream-card {
    height: 74px;
    box-sizing: border-box;
    padding: 8px 14px;
    overflow: hidden;
  }

  .mobile-player-info-open .stream-channel-row {
    height: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .mobile-player-info-open .stream-main-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-player-info-open .stream-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;
  }

  .mobile-player-info-open .stream-copy {
    min-width: 0;
  }

  .mobile-player-info-open .stream-name-row {
    gap: 6px;
  }

  .mobile-player-info-open .stream-name-row strong {
    font-size: 14px;
  }

  .mobile-player-info-open .stream-copy h1 {
    margin: 3px 0 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.3;
  }

  .mobile-player-info-open .stream-meta {
    display: none;
  }
  #chatOpen {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 650px) {
  .composer-bottom .account-connections {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
  }

  .composer-bottom .account-connect {
    height: 30px;
    padding: 4px 8px !important;
  }
  .live-main {
    padding-top: 0;
  }
}

@media (max-width: 650px) {
  .composer-note {
    font-size: 10px;
    gap: 4px;
  }

  .composer-note .platform-source-logo {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .composer-note .twitch-source-logo {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .composer-bottom .account-connections {
    width: auto;
    margin-top: 2px;
    gap: 3px;
    flex-wrap: nowrap;
  }

  .composer-bottom .account-connect {
    height: 24px;
    padding: 2px 5px !important;
    gap: 3px !important;
    border-radius: 6px;
  }

  .composer-bottom .account-connect span {
    font-size: 8px !important;
  }

  .composer-bottom .account-connect .platform-brand-icon,
  .composer-bottom .account-connect .source-badge,
  .composer-bottom .account-connect svg {
    width: 11px !important;
    height: 11px !important;
    flex: 0 0 11px;
  }
}

.twitch-mod-menu {
  position: fixed;
  z-index: 10000;
  min-width: 180px;
  padding: 6px;
  border-radius: 10px;
  background: #15161b;
  box-shadow: 0 10px 30px rgb(0 0 0 / 60%);
}

.twitch-mod-menu[hidden] {
  display: none;
}

.twitch-mod-menu-item {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f5f5f7;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.twitch-mod-menu-item:hover {
  background: #24262d;
}

.twitch-mod-menu-group {
  position: relative;
}

.twitch-mod-timeout-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.twitch-mod-timeout-menu {
  position: absolute;
  top: -6px;
  left: calc(100% + 6px);
  min-width: 155px;
  padding: 6px;
  border-radius: 10px;
  background: #15161b;
  box-shadow: 0 10px 30px rgb(0 0 0 / 60%);
}

.twitch-mod-timeout-menu[hidden] {
  display: none;
}

.twitch-mod-menu-user {
  padding: 5px 11px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #bf94ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitch-mod-custom-timeout-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.twitch-mod-custom-timeout-menu {
  position: absolute;
  top: -6px;
  left: calc(100% + 6px);
  min-width: 145px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: #15161b;
  box-shadow: 0 10px 30px rgb(0 0 0 / 60%);
}

.twitch-mod-custom-timeout-menu[hidden] {
  display: none;
}

.twitch-unban-button {
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
  color: #f5f5f7;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.twitch-unban-button:hover {
  background: rgb(255 255 255 / 14%);
}

.twitch-unban-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.twitch-ban-dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f5f5f7;
}

.twitch-ban-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
  backdrop-filter: blur(2px);
}

.twitch-ban-dialog-card {
  padding: 22px;
  border: 0px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: #0e0e10;
  box-shadow: 0 20px 50px rgb(0 0 0 / 75%);
  text-align: center;
}

.twitch-ban-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgb(237 66 69 / 12%);
  color: #ed4245;
  font-size: 20px;
  font-weight: 800;
}

.twitch-ban-dialog h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.twitch-ban-dialog p {
  margin: 0;
  color: #aeb0b7;
  font-size: 13px;
  line-height: 1.5;
}

.twitch-ban-dialog p strong {
  color: #f5f5f7;
}

.twitch-ban-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.twitch-ban-dialog-actions button {
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#twitchBanCancel {
  background: #24262d;
  color: #f5f5f7;
}

#twitchBanCancel:hover {
  background: #30323a;
}

#twitchBanConfirm {
  background: #d83c3e;
  color: #fff;
}

#twitchBanConfirm:hover {
  background: #ed4245;
}

.twitch-inline-mod-actions {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 4px;
  vertical-align: middle;
}

.twitch-inline-mod-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 1px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #adadb8;
  cursor: pointer;
  vertical-align: middle;
}

.twitch-inline-mod-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}

.twitch-inline-mod-button:hover {
  background: rgb(255 255 255 / 10%);
  color: #efeff1;
}

.twitch-inline-mod-button:active {
  background: rgb(255 255 255 / 16%);
}

.twitch-mod-menu.inline-timeout-open {
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.twitch-mod-menu.inline-timeout-open > .twitch-mod-menu-user,
.twitch-mod-menu.inline-timeout-open > .twitch-mod-menu-item,
.twitch-mod-menu.inline-timeout-open > .twitch-mod-menu-group > .twitch-mod-timeout-toggle {
  display: none;
}

.twitch-mod-menu.inline-timeout-open > .twitch-mod-menu-group {
  position: static;
}

.twitch-mod-menu.inline-timeout-open .twitch-mod-timeout-menu {
  position: static;
  min-width: 155px;
}

.twitch-mod-menu.inline-timeout-open .twitch-mod-custom-timeout-menu {
  left: auto;
  right: calc(100% + 6px);
}
.chat-message.youtube-superchat-message {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 4px;
}

.chat-message.youtube-superchat-message > .platform-source-logo {
  flex: 0 0 auto;
  margin-top: 8px;
}

.chat-message.youtube-superchat-message > .youtube-superchat-card {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
}

.youtube-superchat-header {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
}

.youtube-superchat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-right: 9px;
  border-radius: 50%;
  object-fit: cover;
}

.youtube-superchat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.youtube-superchat-author {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-superchat-amount {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.youtube-superchat-body {
  padding: 9px 10px 10px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.youtube-superchat-body .chat-emote-live {
  vertical-align: middle;
}
.stream-viewers-platforms {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.stream-viewers-platforms .viewer-total,
.stream-viewers-platforms .viewer-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.stream-viewers-platforms .viewer-total[hidden],
.stream-viewers-platforms .viewer-platform[hidden] {
  display: none;
}

.stream-viewers-platforms .viewer-total {
  color: #d3d5dc;
  padding-right: 3px;
}

.stream-viewers-platforms .viewer-total b {
  color: #ffffff;
  font-weight: 600;
}

.stream-viewers-platforms .viewer-platform b {
  color: #d3d5dc;
  font-weight: 600;
}

.viewer-platform-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.twitch-viewer-icon {
  color: #9146ff;
}

.kick-viewer-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.youtube-viewer-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
#streamUptime {
  color: #b0ff55;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.user-profile-dialog {
  width: min(722px, calc(100vw - 28px));
  max-height: min(1210px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #f5f5f7;
}

.user-profile-dialog::backdrop {
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(2px);
}

.user-profile-card {
  position: relative;
  overflow: hidden;
  border: 0px solid rgb(255 255 255 / 8%);
  border-radius: 17px;
  background: #0e0e10;
  box-shadow: 0 22px 60px rgb(0 0 0 / 78%);
}

.user-profile-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  color: #d7d7dc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.user-profile-close:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 125px;
  padding: 24px 60px 22px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  background: #17171a;
}

.user-profile-avatar {
  flex: 0 0 auto;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  object-fit: cover;
  background: #26262c;
}

.user-profile-identity {
  min-width: 0;
}

.user-profile-identity h2 {
  overflow: hidden;
  margin: 0 0 5px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-platforms,
.user-profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.user-profile-badges {
  margin-top: 7px;
}

.user-profile-platform-tag,
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #c9c9cf;
  font-size: 14px;
  font-weight: 700;
}

.user-profile-info {
  display: grid;
  gap: 10px;
  padding: 17px 22px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  color: #b6b6bd;
  font-size: 14px;
}

.user-profile-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  line-height: 1.45;
}

.user-profile-detail-icon {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  color: inherit;
}

.user-profile-detail-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.user-profile-detail-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-profile-actions {
  display: grid;
  flex-wrap: wrap;
  gap: 10px;
  padding: 17px 22px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.user-profile-actions:empty,
.user-profile-info:empty {
  display: none;
}
.user-profile-action-feedback {
  flex: 0 0 100%;
  box-sizing: border-box;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 0px solid rgb(255 255 255 / 8%);
  border-radius: 1px;
  background: rgb(254 254 254);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
}

.user-profile-action-feedback[hidden] {
  display: none;
}

.user-profile-action-feedback[data-state="loading"] {
  color: #d4d4d8;
}

.user-profile-action-feedback[data-state="success"] {
  background: #8bc34a;
  border-color: rgb(138 203 63);
  color: #0e0e10;
}

.user-profile-action-feedback[data-state="error"] {
  background: rgb(237 66 69 / 10%);
  border-color: rgb(237 66 69 / 22%);
  color: #ff8a8d;
}

.user-profile-action {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 0px;
  background: rgb(255 255 255 / 9%);
  color: #f4f4f5;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

select.user-profile-action {
  color-scheme: normal;
  background: #18181b;
  color: #f4f4f5;
}

select.user-profile-action option {
  background: #18181b;
  color: #f4f4f5;
}

.user-profile-action:hover {
  background: rgb(255 255 255 / 14%);
}

.user-profile-action.danger {
  background: rgb(255 0 4 / 18%);
  color: #ff0005;
}

.user-profile-action.danger:hover {
  background: rgb(237 66 69 / 22%);
}

.user-profile-history {
  position: relative;
  padding: 17px 22px 22px;
}

.user-profile-scroll-pause {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  max-width: calc(100% - 60px);
  padding: 7px 14px;
  border: 1px solid #3d3d43;
  border-radius: 12px;
  background: #161619;
  color: #dedee3;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
  cursor: pointer;
  box-shadow: 0 8px 22px rgb(0 0 0 / 45%);
}

.user-profile-scroll-pause[hidden] {
  display: none;
}

.user-profile-scroll-pause strong {
  font-size: 16px;
  line-height: 1;
}

.user-profile-section-title {
  margin-bottom: 12px;
  color: #dedee3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-profile-message-body.is-large-media .chat-emote-live {
  display: block;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 190px;
  margin: 6px 0 2px;
  object-fit: contain;
  vertical-align: initial;
}

.user-profile-message-body .chat-gif-live {
  margin-left: 0 !important;
}

.user-profile-day-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  color: #8f8f98;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-profile-day-divider::before,
.user-profile-day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(255 255 255 / 8%);
}

.user-profile-messages {
  display: grid;
  gap: 7px;
  max-height: 470px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3d3d43 transparent;
}

.user-profile-messages::-webkit-scrollbar {
  width: 8px;
}

.user-profile-messages::-webkit-scrollbar-track {
  background: transparent;
}

.user-profile-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #3d3d43;
  background-clip: content-box;
}

.user-profile-messages::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.user-profile-messages::-webkit-scrollbar-corner {
  background: transparent;
}

.user-profile-message {
  padding: 10px 11px;
  border-radius: 7px;
  background: #18181b;
  color: #d1d1d6;
  font-size: 14px;
  line-height: 1.4;
}

.user-profile-message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #85858d;
  font-size: 11px;
  font-weight: 700;
}

.user-profile-empty {
  padding: 19px 10px;
  color: #777780;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 520px) {
  .user-profile-dialog {
    width: calc(100vw - 16px);
  }

  .user-profile-header {
    padding-left: 16px;
  }

  .user-profile-info,
  .user-profile-actions,
  .user-profile-history {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-profile-avatar {
    width: 54px;
    height: 54px;
  }
}

.user-profile-message {
  position: relative;
  padding-right: 42px;
}

.user-profile-message-delete {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8f8f96;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.user-profile-message:hover .user-profile-message-delete,
.user-profile-message:focus-within .user-profile-message-delete {
  opacity: 1;
  pointer-events: auto;
}

.user-profile-message-delete:hover {
  background: rgb(237 66 69 / 14%);
  color: #ff777a;
}

.user-profile-message-delete:disabled {
  opacity: 0.45;
  cursor: default;
}

.user-profile-message-delete svg {
  fill: currentColor;
}

.twitch-chat-line strong,
.youtube-superchat-author {
  cursor: pointer;
}
.chat-system.ok.chat-notice-live.twitch-gift-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0;
  padding: 12px;
  border: 0;
  border-left: 4px solid #53fc18;
  border-radius: 0;
  background: #1a1a1e;
  color: #efeff1;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.chat-system.ok.chat-notice-live.twitch-gift-community {
  align-items: center;
  background: #1a1a1e;
}

.twitch-gift-notice .twitch-gift-image {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.twitch-gift-notice .twitch-gift-content {
  flex: 1;
  min-width: 0;
}

.twitch-gift-notice .twitch-gift-name {
  display: block;
  margin: 0 0 4px;
  color: #efeff1;
  font-size: 14px;
  font-weight: 700;
}

.twitch-gift-notice .twitch-gift-description {
  color: #efeff1;
  font-size: 13px;
}

.twitch-gift-notice .twitch-gift-content strong {
  color: #efeff1;
  font-weight: 700;
}

.twitch-gift-notice .twitch-gift-symbol {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  color: #53fc18;
}

.twitch-gift-notice .twitch-gift-symbol svg {
  display: block;
  width: 24px;
  height: 24px;
}

.twitch-gift-notice .chat-notice-user-message {
  display: block;
  margin-top: 6px;
}

/* Six larger emotes per row, with channel groups before standard emoji. */
.emoji-picker .emoji-picker-grid {grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;}
.emoji-picker .emoji-picker-grid button {width:100% !important;height:46px !important;font-size:30px !important;line-height:46px !important;}
.emoji-picker .twitch-emote-button img {width:38px;height:38px;max-width:100%;}
.emoji-picker .twitch-emote-group + .twitch-emote-group {margin-top:16px;}
.emoji-picker .channel-emote-tab:last-of-type {margin-right:6px;}

.emoji-picker .twitch-emote-group .emoji-category-title {font-size:11.5px;}
