/* Live by AyeAye Studio — frontend v1.2.0 */
:root { color-scheme: light; }
.aye-live-body {
  --aye-moderator-color: #6655cc;
  --aye-moderator-text: #fff;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--aye-background, #f5f6f8) !important;
  color: #20242c;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.48;
}
.aye-live-body * { box-sizing: border-box; }
.aye-live-body button,
.aye-live-body input,
.aye-live-body textarea { font: inherit; }
.aye-live-body button { cursor: pointer; }
.aye-live-body button:disabled { cursor: not-allowed; }
.aye-live-body [hidden] { display: none !important; }
.aye-visually-hidden {
  position: absolute !important;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.aye-live-page {
  max-width: 1760px;
  min-height: 100vh;
  padding: 0 42px 42px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
/* A larger logo at top left; no automatic LIVE or client name heading. */
.aye-live-header {
  min-height: 128px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.aye-live-header.aye-header-empty { min-height: 46px; padding: 0; }
.aye-live-logo {
  display: block;
  max-width: min(320px, 100%);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.aye-live-main {
  width: 100%;
  display: flex;
  align-items: stretch;
  flex: 1;
  gap: 30px;
  min-height: 0;
}
.aye-video-column {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aye-video-frame {
  background: #0c0d10;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 16px 48px rgba(25, 32, 45, .08);
}
.aye-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aye-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  gap: 8px;
  padding: 30px;
}
.aye-video-placeholder strong { font-size: 19px; font-weight: 600; }
.aye-video-placeholder small { color: #a8a9af; }
.aye-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #292b32;
  border: 1px solid #44454c;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  padding-left: 4px;
}
.aye-no-chat .aye-live-main { align-items: center; justify-content: center; }
.aye-no-chat .aye-video-column { max-width: 1240px; }
.aye-has-chat .aye-video-column { align-self: stretch; }

/* Conversational chat: larger fonts, roomy panel and WhatsApp-like bubbles. */
.aye-chat {
  flex: 0 0 425px;
  min-width: 0;
  min-height: 530px;
  height: clamp(530px, calc(100vh - 170px), 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7ed;
  border-radius: 20px;
  box-shadow: 0 14px 50px rgba(21, 27, 38, .055);
}
.aye-chat-top { flex: 0 0 auto; border-bottom: 1px solid #eef0f3; }
.aye-chat-heading {
  padding: 25px 25px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.aye-chat-heading h1 {
  font-family: inherit !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: -.02em;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #20242c !important;
}
.aye-chat-heading p { font-size: 13px; color: #858b95; margin: 0 !important; }
.aye-online-badge {
  font-size: 12px;
  font-weight: 700;
  color: #23774b;
  background: #ecfaf0;
  border: 1px solid #e1f5e8;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.aye-online-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #2ca467;
}
.aye-messages {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 22px;
  scrollbar-width: thin;
  scrollbar-color: #e1e4e8 transparent;
}
.aye-chat-empty { padding: 30px 8px; color: #9299a3; text-align: center; font-size: 14px; }
.aye-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 88%;
  margin: 0 auto 22px 0;
  min-width: 0;
}
.aye-message.is-own { margin-left: auto; margin-right: 0; align-items: flex-end; }
.aye-message-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 3px 7px;
}
.aye-message.is-own .aye-message-top { justify-content: flex-end; }
.aye-message-name { color: #313641; font-size: 13.5px; font-weight: 750; overflow-wrap: anywhere; }
.aye-message-time { color: #a2a8b2; font-size: 11px; white-space: nowrap; }
.aye-mod-tag {
  color: #555b69;
  background: #f0f1f5;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .035em;
}
.aye-message-bubble {
  max-width: 100%;
  padding: 13px 16px;
  color: #303641;
  background: #f0f1f4;
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .025);
}
.aye-message.is-own .aye-message-bubble {
  border-radius: 18px 18px 6px 18px;
  background: #e5e8ed;
}
.aye-message.is-moderator .aye-message-bubble {
  background: var(--aye-moderator-color, #6655cc);
  color: var(--aye-moderator-text, #fff);
}
.aye-message-content {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 420;
  color: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.aye-message-reply {
  display: block;
  margin: 0 0 10px;
  padding: 8px 11px;
  border-left: 3px solid rgba(77, 83, 97, .4);
  background: rgba(255, 255, 255, .5);
  border-radius: 5px 9px 9px 5px;
  color: inherit;
  overflow: hidden;
}
.aye-message-reply strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 750; }
.aye-message-reply em {
  display: block;
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  opacity: .82;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 56px;
  overflow: hidden;
}
.aye-message.is-moderator .aye-message-reply {
  background: rgba(255, 255, 255, .16);
  border-left-color: currentColor;
}
.aye-message-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 7px 4px 0; }
.aye-message-actions button {
  background: transparent !important;
  border: 0 !important;
  color: #818996 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  padding: 0 !important;
}
.aye-message-actions button:hover { color: #242934 !important; }
.aye-chat-bottom { flex: 0 0 auto; padding: 18px 21px 20px; background: #fff; border-top: 1px solid #eef0f3; }
.aye-join-form label { display: block; margin-bottom: 11px; color: #636b78; font-size: 14px; }
.aye-join-row { display: flex; gap: 9px; }
.aye-join-row input,
.aye-compose-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #e0e3ea !important;
  border-radius: 12px !important;
  background: #f8f9fb !important;
  box-shadow: none !important;
  outline: 0;
  color: #222630 !important;
  font-size: 15px !important;
}
.aye-join-row input:focus,
.aye-compose-form textarea:focus { border-color: #9ca3b2 !important; background: #fff !important; }
.aye-join-row input { flex: 1; padding: 12px 13px !important; }
.aye-join-row button,
.aye-compose-footer button {
  border: 0 !important;
  background: #242934 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 11px 15px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  white-space: nowrap;
}
.aye-join-row button:hover,
.aye-compose-footer button:hover { background: #404856 !important; }
.aye-compose-form textarea {
  display: block;
  resize: vertical;
  min-height: 86px;
  max-height: 180px;
  padding: 13px 14px !important;
  font-size: 15px !important;
  line-height: 1.55;
}
.aye-compose-form textarea:disabled { background: #e7e8eb !important; color: #737783 !important; opacity: 1; }
.aye-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.aye-compose-footer span { color: #9a9fa9; font-size: 11px; }
.aye-compose-footer button span { color: #fff; font-size: 17px; margin-left: 4px; }
.aye-compose-footer button:disabled { background: #a8aeb8 !important; }
.aye-notice { margin-bottom: 12px; padding: 10px 12px; color: #9a4c2b; background: #fff4ef; border-radius: 8px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.aye-reply-preview { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 12px; margin-bottom: 12px; border-left: 3px solid var(--aye-moderator-color); border-radius: 0 9px 9px 0; background: #f7f7fa; }
.aye-reply-preview span { display: block; color: #656d7b; font-size: 12px; }
.aye-reply-preview em { display: block; max-height: 42px; overflow: hidden; margin-top: 4px; color: #676c75; font-style: italic; font-size: 12px; white-space: pre-wrap; }
.aye-reply-preview button { border: 0; background: transparent; color: #79717f; font-size: 21px; line-height: 1; }
.aye-mod-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 22px 15px; }
.aye-mod-label { padding: 6px 8px; background: #f0eff6; color: #5c566d; border-radius: 6px; font-size: 11px; font-weight: 750; }
.aye-small-btn { border: 1px solid #e5e7ed !important; border-radius: 7px !important; padding: 7px 9px !important; background: #fafafa !important; color: #616672 !important; font-size: 11px !important; }
.aye-small-btn:hover { background: #f1f1f3 !important; }
.aye-blocks-panel { padding: 12px 22px; max-height: 170px; overflow: auto; background: #fcfbff; border-top: 1px solid #eeedf2; }
.aye-block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.aye-block-row button { border: 1px solid #dedce5; border-radius: 5px; background: #fff; font-size: 12px; padding: 4px 8px; }
.aye-blocks-panel p { font-size: 13px; color: #888; margin: 0; }

/* Animate only messages arriving after the first chat load. */
.aye-message.is-entering { animation: aye-message-arrive-left .35s cubic-bezier(.2, .8, .25, 1) both; animation-delay: var(--aye-enter-delay, 0ms); }
.aye-message.is-entering.is-own { animation-name: aye-message-arrive-right; }
@keyframes aye-message-arrive-left {
  from { opacity: 0; transform: translate(-13px, 8px) scale(.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes aye-message-arrive-right {
  from { opacity: 0; transform: translate(13px, 8px) scale(.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .aye-message.is-entering { animation: none !important; }
}
@media (min-width: 1450px) {
  .aye-chat { flex-basis: 465px; }
  .aye-live-main { gap: 34px; }
}
@media (max-width: 1130px) {
  .aye-live-page { padding: 0 23px 26px; }
  .aye-live-header { min-height: 105px; padding: 17px 0; }
  .aye-live-logo { max-height: 78px; max-width: 270px; }
  .aye-live-main { gap: 18px; }
  .aye-chat { flex-basis: 375px; }
  .aye-messages { padding: 22px 17px; }
  .aye-video-column { align-items: flex-start; padding-top: 16px; }
}
@media (max-width: 840px) {
  .aye-live-main { flex-direction: column; gap: 20px; flex: none; }
  .aye-video-column { display: block; width: 100%; padding: 0; }
  .aye-chat { width: 100%; flex: auto; height: 600px; min-height: 480px; }
  .aye-no-chat .aye-live-main { flex: 1; display: flex; justify-content: center; }
  .aye-no-chat .aye-video-column { align-self: center; }
}
@media (max-width: 550px) {
  .aye-live-page { padding: 0 13px 18px; min-height: 100svh; }
  .aye-live-header { min-height: 93px; padding: 14px 0; }
  .aye-live-header.aye-header-empty { min-height: 24px; }
  .aye-live-logo { max-width: 230px; max-height: 68px; }
  .aye-live-main { gap: 15px; }
  .aye-video-frame { border-radius: 12px; }
  .aye-chat { height: 570px; min-height: 460px; border-radius: 16px; }
  .aye-chat-heading { padding: 20px 18px; }
  .aye-chat-heading h1 { font-size: 20px !important; }
  .aye-chat-heading p { font-size: 12px; }
  .aye-messages { padding: 22px 15px; }
  .aye-message { max-width: 92%; }
  .aye-message-bubble { padding: 12px 14px; }
  .aye-message-content { font-size: 15.5px; }
  .aye-chat-bottom { padding: 14px 15px 17px; }
  .aye-mod-bar { padding-left: 15px; padding-right: 15px; }
  .aye-compose-form textarea { min-height: 74px; }
}

/* v1.2 — live presence, pinned messages, announcements, polls and Q&A */
.aye-chat-heading .aye-online-badge { font-size: 12px; }
.aye-pinned {
  border-bottom: 1px solid #e3dcff;
  background: #f6f3ff;
  padding: 12px 20px;
  max-height: 142px;
  overflow-y: auto;
  color: #45386d;
}
.aye-pinned strong { display: block; font-size: 12px; font-weight: 800; margin-bottom: 3px; }
.aye-pinned p { font-size: 13px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.aye-pinned .aye-small-btn { margin-top: 7px; background: #fff !important; }
.aye-message.is-announcement { max-width: 100%; margin: 12px 0 22px; align-items: stretch; }
.aye-message.is-announcement .aye-message-top { justify-content: center; }
.aye-message.is-announcement .aye-message-bubble,
.aye-message.is-announcement.is-moderator .aye-message-bubble {
  border: 1px solid #f1ddab;
  color: #70501b;
  background: #fff8e7;
  border-radius: 13px;
  padding: 15px 17px;
  text-align: center;
  box-shadow: none;
}
.aye-message.is-announcement .aye-message-content { font-weight: 550; }
.aye-question-tag,.aye-featured-tag { font-size: 10px; line-height: 1.3; font-weight: 800; background: #e9eef9; color: #455f9a; padding: 2px 5px; border-radius: 5px; }
.aye-featured-tag { background: #fff1d7; color: #986821; }
.aye-mod-tools { background: #fcfbff; border-top: 1px solid #e8e4f1; padding: 14px 21px; max-height: 310px; overflow-y: auto; }
.aye-mod-tools label { display: block; font-size: 12px; font-weight: 700; color: #55576c; margin-bottom: 7px; }
.aye-mod-tools input,.aye-mod-tools textarea {
  display: block;
  width: 100%;
  border: 1px solid #dcdde9 !important;
  border-radius: 9px !important;
  padding: 9px 10px !important;
  font-size: 13px !important;
  color: #262c39 !important;
  background: #fff !important;
  margin-bottom: 9px;
}
.aye-mod-tools textarea { resize: vertical; min-height: 70px; max-height: 145px; }
.aye-mod-tools button[type=submit] { border: 0; background: #302947; color: #fff; border-radius: 9px; padding: 9px 13px; font-weight: 700; font-size: 12px; }
.aye-mod-tools h3 { font-size: 14px; margin: 0 0 11px; }
.aye-mod-tools p { font-size: 13px; color: #697080; margin: 4px 0 9px; overflow-wrap: anywhere; white-space: pre-wrap; }
.aye-featured-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-top: 1px solid #e8e4ef; padding: 10px 0; }
.aye-featured-row strong { font-size: 12px; color: #424759; }
.aye-featured-row p { font-size: 13px; margin-bottom: 0; color: #313745; }
.aye-featured-row button { flex: none; }
.aye-poll { flex: 0 0 auto; border-bottom: 1px solid #e3e5ed; background: #f8f9fd; padding: 15px 20px 17px; max-height: 320px; overflow-y: auto; }
.aye-poll-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #6f7685; }
.aye-poll-header strong { text-transform: uppercase; letter-spacing: .055em; color: #4c5875; }
.aye-poll h2 { margin: 6px 0 12px !important; font-size: 15px !important; font-family: inherit !important; font-weight: 780 !important; color: #222b39 !important; line-height: 1.4 !important; }
.aye-poll-choice { display: block; width: 100%; background: white; color: #283243; border: 1px solid #dfe3f1; border-radius: 9px; margin: 7px 0; padding: 9px 12px; font-size: 13px; line-height: 1.35; text-align: left; }
.aye-poll-choice:hover:not(:disabled) { border-color: #b1a8d9; background: #f5f3ff; }
.aye-poll-choice:disabled { opacity: .5; }
.aye-poll-result { margin-bottom: 10px; }
.aye-poll-result-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.aye-poll-result.is-chosen .aye-poll-result-line { font-weight: 750; }
.aye-poll-progress { margin-top: 5px; border-radius: 10px; height: 7px; background: #e5e7ee; overflow: hidden; }
.aye-poll-progress-fill { display: block; height: 100%; background: var(--aye-moderator-color,#6655cc); transition: width .25s ease; }
.aye-poll .aye-small-btn { margin-top: 4px; }
@media (max-width: 550px) {
  .aye-pinned,.aye-poll { padding-left: 15px; padding-right: 15px; }
  .aye-mod-tools { padding: 13px 15px; }
  .aye-mod-bar { gap: 5px; }
  .aye-small-btn { font-size: 11px !important; }
  .aye-chat { height: min(720px, calc(100svh - 260px)); min-height: 540px; }
}
