* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
}

.yt-chat {
  width: 370px;
  height: 720px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #f1f1f1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.yt-chat-head {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #f5f5f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.yt-chat-actions {
  color: #d0d0d0;
  font-size: 18px;
}

.yt-chat-msgs {
  flex: 1;
  overflow: hidden;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}

.yt-msg {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 4px;
  flex: 0 0 auto;
  min-height: auto;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 0.18s ease-out forwards;
}

.yt-msg.highlight {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
}

.yt-msg.sub {
  background: linear-gradient(90deg, rgba(0, 208, 132, 0.12), rgba(0, 208, 132, 0.025));
  border-radius: 8px;
}

.yt-msg.mod {
  background: linear-gradient(90deg, rgba(0, 183, 255, 0.10), rgba(0, 183, 255, 0.02));
  border-radius: 8px;
}

.yt-msg.bits {
  background: linear-gradient(90deg, rgba(255, 214, 0, 0.15), rgba(255, 214, 0, 0.035));
  border: 1px solid rgba(255, 214, 0, 0.22);
  border-radius: 8px;
}

.yt-msg.youtube.sub {
  background: linear-gradient(90deg, rgba(255, 0, 51, 0.10), rgba(255, 0, 51, 0.02));
}

.yt-pic {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 999px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 800;
  background: #5f3bb8;
  overflow: hidden;
}

.yt-pic.youtube {
  background: #cc0033;
}

.yt-pic.mod {
  background: #506070;
}

.yt-pic.sub {
  background: #1f873d;
}

.yt-pic.vip {
  background: #b68b00;
}

.yt-pic.broadcaster {
  background: #cc0033;
}

.yt-pic.bits {
  background: linear-gradient(135deg, #000, #3a3a3a);
  color: #ffd600;
}

.yt-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-body {
  flex: 1;
  min-width: 0;
  display: block;
  line-height: 1.32;
  font-size: 13px;
  overflow: visible;
}

.yt-line {
  display: block;
  width: 100%;
  min-height: 17px;
}

.yt-platform {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: 4px;
  color: #fff;
  vertical-align: 1px;
}

.yt-platform.youtube {
  background: rgba(255, 0, 51, 0.85);
}

.yt-platform.twitch {
  background: rgba(145, 70, 255, 0.85);
}

.yt-user {
  display: inline;
  font-weight: 800;
  margin-right: 4px;
  white-space: normal;
  color: #9b6dff;
  word-break: break-word;
}

.yt-user.youtube {
  color: #ff4f6f;
}

.yt-user.mod {
  color: #68b7ff;
}

.yt-user.sub {
  color: #37d86f;
}

.yt-user.vip {
  color: #ffd34d;
}

.yt-user.broadcaster {
  color: #ff4f6f;
}

.yt-user.bits {
  color: #ffd600;
}

.yt-text {
  display: inline;
  color: #ededed;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.yt-amount {
  color: #ffd600;
  font-weight: 900;
  margin-right: 5px;
}

.yt-badge {
  display: inline-block;
  font-size: 11px;
  margin-right: 3px;
}

.yt-chat-input {
  height: 56px;
  min-height: 56px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 9px;
}

.yt-input-pfp {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 999px;
  background: #202124;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.yt-input-fake {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  color: #aaa;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.yt-icon {
  color: #aaa;
  font-size: 18px;
  width: 18px;
  text-align: center;
}

#status {
  position: fixed;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#status.hide {
  display: none;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yt-msg.raid {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.22), rgba(255, 122, 0, 0.04));
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 8px;
}

.yt-msg.gift {
  background: linear-gradient(90deg, rgba(255, 211, 77, 0.20), rgba(255, 211, 77, 0.04));
  border: 1px solid rgba(255, 211, 77, 0.28);
  border-radius: 8px;
}

.yt-pic.raid {
  background: #ff7a00;
}

.yt-pic.gift {
  background: #b68b00;
}

.yt-user.raid {
  color: #ff9d3b;
}

.yt-user.gift {
  color: #ffd34d;
}

.event-strip {
  min-height: 48px;
  padding: 6px 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: linear-gradient(90deg, rgba(145, 70, 255, 0.16), rgba(255, 0, 51, 0.10));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.event-strip-title {
  color: #cfcfcf;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-empty {
  color: #8d8d8d;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
}

.event-pill {
  max-width: 145px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-pill.bits {
  background: rgba(255, 214, 0, 0.28);
  border: 1px solid rgba(255, 214, 0, 0.35);
  color: #ffe56a;
}

.event-pill.sub {
  background: rgba(0, 208, 132, 0.24);
  border: 1px solid rgba(0, 208, 132, 0.35);
  color: #6dffb9;
}

.event-pill.gift {
  background: rgba(255, 211, 77, 0.24);
  border: 1px solid rgba(255, 211, 77, 0.35);
  color: #ffd34d;
}

.event-pill.raid {
  background: rgba(255, 122, 0, 0.24);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: #ffad66;
}

.event-pill.superchat {
  background: rgba(255, 0, 51, 0.24);
  border: 1px solid rgba(255, 0, 51, 0.35);
  color: #ff8aa0;
}

.yt-msg.youtube.mod {
  background: linear-gradient(90deg, rgba(104, 183, 255, 0.12), rgba(104, 183, 255, 0.025));
  border-radius: 8px;
}

.yt-msg.youtube.broadcaster {
  background: linear-gradient(90deg, rgba(255, 79, 111, 0.16), rgba(255, 79, 111, 0.035));
  border-radius: 8px;
}

.yt-msg.youtube.verified {
  background: linear-gradient(90deg, rgba(125, 211, 255, 0.12), rgba(125, 211, 255, 0.025));
  border-radius: 8px;
}

.yt-pic.youtube.mod {
  background: #255f91;
}

.yt-pic.youtube.sub {
  background: #1f873d;
}

.yt-pic.youtube.broadcaster {
  background: #cc0033;
}

.yt-pic.youtube.verified {
  background: #176b8f;
}

.yt-user.youtube.mod {
  color: #68b7ff;
}

.yt-user.youtube.sub {
  color: #37d86f;
}

.yt-user.youtube.broadcaster {
  color: #ff4f6f;
}

.yt-user.youtube.verified {
  color: #7dd3ff;
}

body.speed-fast .yt-msg {
  animation-duration: 0.10s;
}

body.speed-normal .yt-msg {
  animation-duration: 0.18s;
}

body.speed-slow .yt-msg {
  animation-duration: 0.42s;
}

body.speed-fast .event-pill {
  animation: eventBlinkFast 0.55s ease-out;
}

body.speed-slow .event-pill {
  animation: eventBlinkSlow 1.2s ease-out;
}

@keyframes eventBlinkFast {
  from {
    transform: scale(1.04);
    filter: brightness(1.4);
  }

  to {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes eventBlinkSlow {
  from {
    transform: scale(1.06);
    filter: brightness(1.55);
  }

  to {
    transform: scale(1);
    filter: brightness(1);
  }
}

.chat-live-stats {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-stat strong {
  font-size: 11px;
  line-height: 1;
}

.chat-stat.viewers {
  background: rgba(255, 0, 51, 0.18);
  border-color: rgba(255, 0, 51, 0.26);
}

.chat-stat.likes {
  background: rgba(145, 70, 255, 0.20);
  border-color: rgba(145, 70, 255, 0.28);
}

@media (max-width: 360px) {
  .chat-live-stats {
    gap: 4px;
  }

  .chat-stat {
    min-width: 46px;
    padding: 3px 5px;
    font-size: 10px;
  }

  .chat-stat strong {
    font-size: 10px;
  }
}

/* ===== Tema cinza grafite mais suave ===== */

.yt-chat {
  background: linear-gradient(180deg, rgba(34, 36, 42, 0.96), rgba(24, 26, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.yt-chat-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f1f1;
}

.yt-chat-msgs {
  background: rgba(255, 255, 255, 0.01);
}

.event-strip {
  background: linear-gradient(90deg, rgba(70, 70, 78, 0.32), rgba(45, 45, 52, 0.24));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-strip-title {
  color: #d7d7db;
}

.event-empty {
  color: #a5a5ad;
}

.yt-msg.highlight {
  background: rgba(255, 255, 255, 0.025);
}

.yt-msg.sub {
  background: linear-gradient(90deg, rgba(0, 208, 132, 0.08), rgba(255, 255, 255, 0.01));
}

.yt-msg.mod {
  background: linear-gradient(90deg, rgba(104, 183, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.yt-msg.bits {
  background: linear-gradient(90deg, rgba(255, 214, 0, 0.10), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 214, 0, 0.16);
}

.yt-msg.gift {
  background: linear-gradient(90deg, rgba(255, 211, 77, 0.10), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 211, 77, 0.16);
}

.yt-msg.raid {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.10), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 122, 0, 0.16);
}

.yt-msg.youtube.sub {
  background: linear-gradient(90deg, rgba(255, 0, 51, 0.08), rgba(255, 255, 255, 0.01));
}

.yt-text {
  color: #e4e4e8;
}

.yt-chat-input {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-input-pfp {
  background: #2f3238;
  color: #b8b8be;
}

.yt-input-fake {
  color: #b5b5bc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.yt-icon {
  color: #b5b5bc;
}

.chat-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-stat.viewers {
  background: rgba(255, 0, 51, 0.12);
  border-color: rgba(255, 0, 51, 0.18);
}

.chat-stat.likes {
  background: rgba(145, 70, 255, 0.14);
  border-color: rgba(145, 70, 255, 0.20);
}

#status {
  background: rgba(38, 40, 46, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ededf1;
}


/* ===== Background da página do overlay ===== */

html,
body {
  min-height: 100vh;
}

body.bg-transparent {
  background: transparent !important;
}

body.bg-gray {
  background:
    radial-gradient(circle at 80% 20%, rgba(145, 70, 255, 0.10), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 51, 0.08), transparent 30%),
    linear-gradient(180deg, #1b1d22 0%, #111318 100%) !important;
}

body.bg-dark {
  background: #08090c !important;
}

body.bg-studio {
  background:
    linear-gradient(135deg, rgba(20, 22, 28, 1), rgba(34, 36, 44, 1)),
    #15171c !important;
}


body.bg-custom {
  background: var(--custom-bg-color, #1b1d22) !important;
}


body.bg-custom {
  background: var(--custom-bg-color, #1b1d22) !important;
}


/* ===== HostStorm Theme System ===== */

body.bg-gray {
  background:
    radial-gradient(circle at 80% 20%, rgba(145, 70, 255, 0.10), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 51, 0.08), transparent 30%),
    linear-gradient(180deg, #1b1d22 0%, #111318 100%) !important;
}

body.bg-dark {
  background: #08090c !important;
}

body.bg-studio {
  background: linear-gradient(135deg, #14161c, #2b2e38) !important;
}

body.bg-custom {
  background: var(--custom-bg-color, var(--hs-page-bg-color, #111318)) !important;
}

body.bg-transparent {
  background: transparent !important;
}

.yt-chat {
  background: var(--hs-chat-bg, #23262d) !important;
  border-color: var(--hs-chat-border, #3a3d4a) !important;
}

.yt-chat-head {
  background: var(--hs-chat-head, #171920) !important;
  border-bottom-color: var(--hs-chat-border, #3a3d4a) !important;
  color: var(--hs-chat-text, #e8e8ea) !important;
}

.yt-chat-msgs {
  background: var(--hs-chat-messages, #20232a) !important;
}

.event-strip {
  background: var(--hs-chat-messages, #20232a) !important;
  border-bottom-color: var(--hs-chat-border, #3a3d4a) !important;
}

.event-strip-title,
.event-empty {
  color: var(--hs-chat-muted, #a5a5ad) !important;
}

.yt-text,
.yt-body,
.yt-line {
  color: var(--hs-chat-text, #e8e8ea) !important;
}

.yt-chat-input {
  background: var(--hs-chat-input, #1a1c22) !important;
  border-top-color: var(--hs-chat-border, #3a3d4a) !important;
}

.yt-input-fake {
  color: var(--hs-chat-muted, #a5a5ad) !important;
  border-bottom-color: var(--hs-chat-border, #3a3d4a) !important;
}

.yt-platform.youtube {
  background: var(--hs-youtube, #ff0033) !important;
}

.yt-platform.twitch {
  background: var(--hs-twitch, #9146ff) !important;
}

.yt-user {
  color: var(--hs-role-normal, #e8e8ea) !important;
}

.yt-user.mod,
.yt-user.youtube.mod {
  color: var(--hs-role-mod, #68b7ff) !important;
}

.yt-user.sub,
.yt-user.youtube.sub {
  color: var(--hs-role-member, #37d86f) !important;
}

.yt-user.vip {
  color: var(--hs-role-vip, #d946ef) !important;
}

.yt-user.broadcaster,
.yt-user.youtube.broadcaster {
  color: var(--hs-role-owner, #ff4f6f) !important;
}

.yt-user.verified,
.yt-user.youtube.verified {
  color: var(--hs-role-verified, #7dd3ff) !important;
}

.yt-user.bits {
  color: var(--hs-event-bits, #ffd600) !important;
}

.yt-user.gift {
  color: var(--hs-event-gift, #ffd34d) !important;
}

.yt-user.raid {
  color: var(--hs-event-raid, #ff7a00) !important;
}

.yt-msg.bits {
  border-color: color-mix(in srgb, var(--hs-event-bits, #ffd600) 40%, transparent) !important;
  background: color-mix(in srgb, var(--hs-event-bits, #ffd600) 12%, transparent) !important;
}

.yt-msg.sub,
.yt-msg.youtube.sub {
  background: color-mix(in srgb, var(--hs-event-sub, #37d86f) 10%, transparent) !important;
}

.yt-msg.gift {
  border-color: color-mix(in srgb, var(--hs-event-gift, #ffd34d) 40%, transparent) !important;
  background: color-mix(in srgb, var(--hs-event-gift, #ffd34d) 12%, transparent) !important;
}

.yt-msg.raid {
  border-color: color-mix(in srgb, var(--hs-event-raid, #ff7a00) 40%, transparent) !important;
  background: color-mix(in srgb, var(--hs-event-raid, #ff7a00) 12%, transparent) !important;
}

.event-pill.bits {
  background: var(--hs-event-bits, #ffd600) !important;
  color: #111 !important;
}

.event-pill.sub {
  background: var(--hs-event-sub, #37d86f) !important;
  color: #07130c !important;
}

.event-pill.gift {
  background: var(--hs-event-gift, #ffd34d) !important;
  color: #111 !important;
}

.event-pill.raid {
  background: var(--hs-event-raid, #ff7a00) !important;
  color: #111 !important;
}

.event-pill.superchat {
  background: var(--hs-event-superchat, #ff0033) !important;
  color: #fff !important;
}

.chat-stat.viewers {
  background: color-mix(in srgb, var(--hs-stats-viewers, #ff0033) 24%, transparent) !important;
  border-color: color-mix(in srgb, var(--hs-stats-viewers, #ff0033) 40%, transparent) !important;
}

.chat-stat.likes {
  background: color-mix(in srgb, var(--hs-stats-likes, #9146ff) 24%, transparent) !important;
  border-color: color-mix(in srgb, var(--hs-stats-likes, #9146ff) 40%, transparent) !important;
}


/* ===== Topo compacto YT / SH seguro ===== */

.multi-live-stats {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  min-width: 120px;
}

.ml-stat {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  width: fit-content;
  max-width: 145px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.ml-stat strong {
  font-size: 10px;
  font-weight: 900;
}

.ml-stat.yt {
  background: rgba(255, 0, 51, .18);
  border-color: rgba(255, 0, 51, .35);
}

.ml-stat.sh {
  background: rgba(255, 90, 0, .18);
  border-color: rgba(255, 90, 0, .35);
}


/* ===== YouTube Shorts Chat ===== */

.yt-platform.shorts {
  background: #ff7a00 !important;
  color: #fff !important;
}

.yt-msg.shorts {
  background: rgba(255, 122, 0, 0.035);
}

.yt-pic.shorts {
  background: linear-gradient(135deg, #ff7a00, #ff0033) !important;
  color: #fff !important;
}

.yt-user.shorts {
  color: #ffb020 !important;
}

.yt-msg.shorts.sub {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.10), rgba(255, 255, 255, 0.01)) !important;
}

.yt-msg.shorts.mod {
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.10), rgba(255, 255, 255, 0.01)) !important;
}


/* ===== Sidebar Live Info / Eventos ===== */

#hs-live-sidebar {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

#hs-live-sidebar.hs-sidebar-hidden {
  opacity: 0;
  transform: translateX(-12px);
}

.hs-side-card {
  background: linear-gradient(180deg, rgba(28, 31, 38, .96), rgba(20, 22, 27, .96));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  border-radius: 14px;
  overflow: hidden;
}

.hs-stats-card {
  padding: 10px;
}

.hs-events-card {
  padding: 10px;
  min-height: 130px;
  flex: 1;
}

.hs-side-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #b7bac5;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hs-platform-block {
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.hs-platform-block:last-child {
  margin-bottom: 0;
}

.hs-platform-head {
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
}

.hs-yt .hs-platform-head {
  color: #ff4f6f;
}

.hs-sh .hs-platform-head {
  color: #ff9b20;
}

.hs-tw .hs-platform-head {
  color: #a970ff;
}

.hs-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #c9cbd4;
  margin-top: 4px;
}

.hs-side-row span {
  opacity: .85;
  white-space: nowrap;
}

.hs-side-row strong {
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.hs-yt {
  background: linear-gradient(90deg, rgba(255,0,51,.12), rgba(255,255,255,.025));
  border-color: rgba(255,0,51,.18);
}

.hs-sh {
  background: linear-gradient(90deg, rgba(255,122,0,.13), rgba(255,255,255,.025));
  border-color: rgba(255,122,0,.20);
}

.hs-tw {
  background: linear-gradient(90deg, rgba(145,70,255,.14), rgba(255,255,255,.025));
  border-color: rgba(145,70,255,.22);
}

#hs-side-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-side-event {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  color: #11151b;
  background: linear-gradient(135deg, #35f28a, #1bd66f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-event-empty {
  color: #9ca0ad;
  font-size: 10px;
  line-height: 1.35;
  opacity: .85;
}

.event-strip-hidden-main {
  display: none !important;
}

.yt-chat-head .multi-live-stats,
.yt-chat-head .chat-stat {
  display: none !important;
}

@media (max-width: 520px) {
  #hs-live-sidebar {
    display: none !important;
  }
}





/* ===== HostStorm: scroll real do histórico do chat ===== */

.yt-chat {
  position: relative !important;
  overflow: hidden !important;
}

.yt-chat-msgs,
#chat-msgs {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255,255,255,.32) transparent !important;
}

.yt-chat-msgs::-webkit-scrollbar,
#chat-msgs::-webkit-scrollbar {
  width: 7px !important;
}

.yt-chat-msgs::-webkit-scrollbar-track,
#chat-msgs::-webkit-scrollbar-track {
  background: transparent !important;
}

.yt-chat-msgs::-webkit-scrollbar-thumb,
#chat-msgs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.30) !important;
  border-radius: 999px !important;
}

#hs-go-live {
  position: absolute !important;
  right: 14px !important;
  bottom: 62px !important;
  z-index: 9999 !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: linear-gradient(135deg, #9146ff, #ff0033) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35) !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

#hs-go-live.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.hs-user-paused {
  box-shadow: inset 0 20px 26px rgba(0,0,0,.18) !important;
}

/* ===== Twitch emotes nativos ===== */
.tw-emote {
  display: inline-block;
  height: 1.55em;
  max-height: 28px;
  width: auto;
  vertical-align: middle;
  margin: -0.18em 2px 0 2px;
}


/* ===== HostStorm OBS export modes ===== */

body.obs-transparent {
  background: transparent !important;
}

body.obs-mode-chat .event-strip,
body.obs-mode-chat #hs-live-sidebar,
body.obs-mode-chat .yt-chat-input {
  display: none !important;
}

body.obs-mode-chat .yt-chat {
  height: 720px !important;
}

body.obs-mode-chat .yt-chat-msgs,
body.obs-mode-chat #chat-msgs {
  max-height: none !important;
}

body.obs-mode-clean .yt-chat-head,
body.obs-mode-clean .event-strip,
body.obs-mode-clean #hs-live-sidebar,
body.obs-mode-clean .yt-chat-input,
body.obs-mode-clean #status {
  display: none !important;
}

body.obs-mode-clean .yt-chat {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.obs-mode-clean .yt-chat-msgs,
body.obs-mode-clean #chat-msgs {
  padding: 0 !important;
  max-height: none !important;
}

body.obs-compact .yt-msg {
  margin-bottom: 5px !important;
}

body.obs-compact .yt-text {
  font-size: 12px !important;
}


/* ===== HostStorm YouTube Gift Event ===== */

.hs-youtube-gift-message {
  border-left: 3px solid #ffd166;
  background: linear-gradient(90deg, rgba(255, 209, 102, .18), rgba(255, 255, 255, .03));
  box-shadow: 0 8px 26px rgba(255, 209, 102, .10);
}

.hs-gift-badge {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  color: #1a1200;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.hs-gift-text {
  color: #ffe6a3;
  font-weight: 900;
}


/* ===== HostStorm YouTube/Shorts Gift Event ===== */

.hs-youtube-gift-message {
  border-left: 3px solid #ffd166;
  background: linear-gradient(90deg, rgba(255, 209, 102, .18), rgba(255, 255, 255, .03));
  box-shadow: 0 8px 26px rgba(255, 209, 102, .10);
}

.hs-shorts-gift-message {
  border-left: 3px solid #ff8c42;
  background: linear-gradient(90deg, rgba(255, 140, 66, .20), rgba(255, 255, 255, .03));
  box-shadow: 0 8px 26px rgba(255, 140, 66, .12);
}

.hs-gift-badge {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  color: #1a1200;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.hs-gift-text {
  color: #ffe6a3;
  font-weight: 900;
}


/* ===== HostStorm Gift Overlay Fallback V2 ===== */

.hs-youtube-gift-message {
  border-left: 3px solid #ffd166;
  background: linear-gradient(90deg, rgba(255, 209, 102, .18), rgba(255, 255, 255, .03));
  box-shadow: 0 8px 26px rgba(255, 209, 102, .10);
}

.hs-shorts-gift-message {
  border-left: 3px solid #ff8c42;
  background: linear-gradient(90deg, rgba(255, 140, 66, .20), rgba(255, 255, 255, .03));
  box-shadow: 0 8px 26px rgba(255, 140, 66, .12);
}

.hs-gift-badge {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff8c42);
  color: #1a1200;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.hs-gift-text {
  color: #ffe6a3;
  font-weight: 900;
}













/* ===== HostStorm Kick Native Platform Style ===== */

/*
  O layout, fonte, tamanho, espaçamento e avatar vêm das classes
  nativas .yt-msg, .yt-pic e .yt-user.
  Aqui alteramos somente a identidade visual da plataforma.
*/

.yt-msg.kick {
  background: rgba(83, 252, 24, 0.035);
}

.yt-msg.kick.hs-kick-special-native {
  background: linear-gradient(
    90deg,
    rgba(83, 252, 24, 0.10),
    rgba(255, 255, 255, 0.01)
  );
}

.yt-pic.kick {
  background: #53fc18 !important;
  color: #071005 !important;
}

.yt-user.kick {
  color: #53fc18 !important;
}

/*
  Mantém todas as medidas da badge nativa.
  Somente troca cores.
*/
.platform-badge.kick,
.yt-platform.kick,
.yt-badge.kick,
[data-platform-badge].kick {
  background: #53fc18 !important;
  color: #071005 !important;
}

.yt-msg.kick .hs-kick-user-badge {
  background: rgba(83, 252, 24, .14);
  color: #9cff79;
}

/* Card Kick no LIVE INFO */

.hs-kick-live-card {
  margin-top: 9px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(83, 252, 24, .22);
  background: rgba(83, 252, 24, .035);
}

.hs-kick-live-card.is-live {
  border-color: rgba(83, 252, 24, .65);
}

.hs-kick-live-title {
  margin-bottom: 7px;
  color: #53fc18;
  font-size: 13px;
  font-weight: 900;
}

.hs-kick-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.hs-kick-live-row strong {
  color: #fff;
  font-size: 12px;
}

.hs-kick-live-card.is-live #hsKickLiveStatus {
  color: #53fc18;
}

/* ===== /HostStorm Kick Native Platform Style ===== */


/* ===== Kick LIVE INFO Subscribers ===== */

#hsKickLiveSubscribers {
  color: #53fc18;
  font-weight: 800;
}

/* ===== /Kick LIVE INFO Subscribers ===== */


/* ===== HostStorm Kick Native Emotes ===== */

.yt-msg.kick .kick-emote,
.hs-kick-message-html .kick-emote {
  display: inline-block;
  width: auto;
  height: 24px;
  max-width: 48px;
  margin: 0 2px;
  vertical-align: -6px;
  object-fit: contain;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.yt-msg.kick .kick-emote[src$=".gif"],
.hs-kick-message-html .kick-emote[src$=".gif"] {
  image-rendering: auto;
}

/* ===== /HostStorm Kick Native Emotes ===== */


/* ===== HostStorm Total Viewers Live Info ===== */

.hs-total-viewers-card {
  margin-top: 9px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 209, 102, .42);
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, .10),
    rgba(23, 25, 31, .96)
  );
  box-sizing: border-box;
}

.hs-total-viewers-title {
  margin-bottom: 7px;
  color: #ffd166;
  font-size: 13px;
  font-weight: 900;
}

.hs-total-viewers-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

#hsTotalViewersValue {
  color: #ffd166;
  font-size: 15px;
  font-weight: 900;
}

.hs-total-viewers-platforms {
  margin-top: 6px;
  color: rgba(255,255,255,.38);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ===== /HostStorm Total Viewers Live Info ===== */

