/* help!aovivo - Chat beta / respeita a identidade laranja + roxo do portal. */
.site-shell .static-live-grid:not(.focus-active) {
  grid-template-columns: minmax(0, 1fr) minmax(315px, 360px);
  align-items: stretch;
  gap: 18px;
}
.site-shell .static-live-grid:not(.focus-active) .broadcast { min-width: 0; }
.pc-chat-panel {
  --pc-purple: #43256c;
  --pc-orange: #f26322;
  --pc-ink: #29193f;
  --pc-muted: #7a7088;
  font-family: Poppins, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  max-height: 720px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e1ef;
  border-radius: 14px;
  color: var(--pc-ink);
  box-shadow: 0 6px 20px #2213330a;
  scroll-margin-top: 32px;
}
.pc-chat-panel * { box-sizing: border-box; }
.pc-chat-panel button { cursor: pointer; }
.pc-chat-panel button:disabled { cursor: not-allowed; opacity: .55; }
.pc-chat-panel input { width: 100%; min-width: 0; outline: none; }
.pc-chat-panel input:focus-visible,.pc-chat-panel button:focus-visible { outline: 2px solid var(--pc-orange); outline-offset: 2px; }
.pc-chat-heading {
  padding: 19px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #efeaf4;
}
.pc-chat-heading-main { min-width: 0; }
.pc-chat-kicker { display: block; font-size: 9px; letter-spacing: 2px; font-weight: 700; color: var(--pc-orange); margin-bottom: 7px; }
.pc-chat-heading h2 { display: flex; gap: 8px; align-items: center; font-size: 17px; font-weight: 700; letter-spacing: -.45px; margin: 0 0 5px; }
.pc-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #43a57e; box-shadow: 0 0 0 4px #43a57e22; }
.pc-chat-subtitle { font-size: 10px; color: var(--pc-muted); }
.pc-chat-admin-link { background: #f6f2f9; color: var(--pc-purple); border: 1px solid #e5dced; border-radius: 7px; font-weight: 600; font-size: 10px; padding: 7px 10px; }
.pc-chat-admin-link:hover { background: #eee3f7; }
.pc-chat-meta { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px; background: #faf8fc; border-bottom: 1px solid #eeeaf3; font-size: 10px; }
.pc-state-open { color: #29815b; font-weight: 600; }
.pc-state-closed { color: #b65a1a; font-weight: 600; }
.pc-chat-meta button { font-size: 21px; line-height: 1; color: var(--pc-purple); padding: 0 5px; }
.pc-chat-meta button:hover { color: var(--pc-orange); }
.pc-chat-alert:empty { display: none; }
.pc-chat-alert { padding: 9px 14px; font-size: 10px; line-height: 1.5; background: #f4f0fa; color: var(--pc-purple); }
.pc-chat-alert.pc-alert-error { color: #973a2a; background: #fff0ed; }
.pc-chat-alert.pc-alert-success { color: #25764f; background: #e9f7ef; }
.pc-chat-admin-login { padding: 15px 16px; border-bottom: 1px solid #eeeaf3; background: #f9f6fc; }
.pc-chat-admin-login p { font-weight: 600; font-size: 12px; margin: 0 0 10px; }
.pc-chat-admin-login form { display: grid; gap: 8px; }
.pc-chat-admin-login label { font-size: 10px; font-weight: 600; }
.pc-chat-admin-login small { display: block; color: var(--pc-muted); font-size: 9px; margin-top: 9px; }
.pc-chat-admin-tools { background: #f8f4fc; padding: 12px 14px; border-bottom: 1px solid #e8e1ef; }
.pc-admin-label { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 11px; }
.pc-admin-label span { font-size: 9px; color: var(--pc-muted); }
.pc-chat-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chat-admin-actions button, .pc-user-row button { border: 1px solid #ded3e8; border-radius: 7px; background: #fff; color: var(--pc-purple); font-size: 9px; font-weight: 600; padding: 8px 9px; }
.pc-chat-admin-actions button:hover, .pc-user-row button:hover { background: #efe6f6; }
#pc-chat-users { margin-top: 12px; max-height: 240px; overflow: auto; border-top: 1px solid #e7deed; padding-top: 10px; }
#pc-chat-users h4 { font-size: 11px; margin: 0 0 8px; }
.pc-user-row { padding: 8px 0; border-bottom: 1px solid #eee7f3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-user-row div { display: grid; min-width: 0; gap: 2px; }
.pc-user-row strong { font-size: 10px; }
.pc-user-row small { font-size: 9px; color: var(--pc-muted); overflow-wrap: anywhere; }
.pc-user-row .pc-user-banned { color: #bd443b; font-weight: 700; }
.pc-chat-messages { flex: 1 1 auto; min-height: 175px; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 15px; scrollbar-color: #ddd0ea transparent; }
.pc-chat-placeholder { font-size: 11px; color: var(--pc-muted); text-align: center; padding: 25px 10px; margin: auto; line-height: 1.7; }
.pc-message { display: flex; align-items: flex-start; gap: 9px; }
.pc-avatar { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; background: #efe7f7; color: #503472; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pc-message-team .pc-avatar { background: #ffe4d5; color: #b14f1b; }
.pc-message-content { min-width: 0; flex: 1; }
.pc-message-top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.pc-message-top strong { font-size: 10px; line-height: 1.3; }
.pc-message-team .pc-message-top strong { color: #b64a19; }
.pc-message-top time { color: #968aa5; font-size: 9px; }
.pc-message-content>p { margin: 0; color: #4a4254; overflow-wrap: anywhere; line-height: 1.55; font-size: 11px; white-space: pre-wrap; }
.pc-message-content>p.pc-message-removed { font-style: italic; color: #9d96a5; }
.pc-message-actions { display: flex; gap: 7px; margin-top: 6px; }
.pc-message-actions button { font-size: 9px; font-weight: 700; color: var(--pc-orange); padding: 2px 0; }
.pc-system-message { border-radius: 8px; background: #f6f1fc; color: #665078; text-align: center; padding: 9px; font-size: 10px; line-height: 1.5; }
.pc-chat-foot { padding: 13px 14px 15px; border-top: 1px solid #eee8f3; background: #fff; }
.pc-chat-join>h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.pc-chat-join>p { color: var(--pc-muted); font-size: 10px; margin: 0 0 12px; }
.pc-chat-join form { display: grid; gap: 6px; }
.pc-chat-join form>label:not(.pc-chat-consent) { margin-top: 3px; font-size: 10px; font-weight: 600; }
.pc-chat-panel form input:not([type=checkbox]) { background: #fff; border: 1px solid #ddd6e5; border-radius: 8px; color: var(--pc-ink); padding: 10px 11px; font-family: inherit; font-size: 11px; height: 38px; }
.pc-chat-panel form input::placeholder { color: #a09aa9; }
.pc-chat-panel form input:focus { border-color: var(--pc-purple); }
.pc-chat-consent { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 8px; margin: 5px 0 6px; cursor: pointer; }
.pc-chat-consent input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--pc-purple); }
.pc-chat-consent span { line-height: 1.55; font-size: 9px; color: #71697b; }
.pc-button-dark { background: var(--pc-purple); color: white; border: 0; border-radius: 8px; padding: 11px 12px; text-align: center; font-weight: 700; font-size: 11px; }
.pc-button-dark:hover:not(:disabled) { background: #64418c; }
.pc-chat-foot small { display: block; color: #888095; font-size: 9px; line-height: 1.5; margin-top: 9px; }
.pc-chat-who { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding-bottom: 10px; }
.pc-chat-who span { font-size: 10px; color: #51445f; font-weight: 600; overflow-wrap: anywhere; }
.pc-chat-who button { font-size: 9px; font-weight: 600; color: var(--pc-orange); flex-shrink: 0; }
#pc-chat-send-form { display: flex; gap: 7px; }
#pc-chat-send-form input { flex: 1; }
#pc-chat-send-form button { width: 43px; border-radius: 9px; padding: 0; font-size: 15px; }
.pc-visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.site-shell .static-live-grid.focus-active .pc-chat-panel { display: none; }
/* Ensure the player gets the available width instead of being squashed. */
@media (width <= 1060px) {
  .site-shell .static-live-grid:not(.focus-active) { grid-template-columns: minmax(0, 1fr); }
  .pc-chat-panel { max-height: none; }
  .pc-chat-messages { min-height: 270px; max-height: 340px; }
}
@media (width <= 700px) {
  .site-shell .static-live-grid:not(.focus-active) { gap: 15px; }
  .pc-chat-panel { border-radius: 13px; }
  .pc-chat-heading { padding: 16px; }
  .pc-chat-heading h2 { font-size: 16px; }
  .pc-chat-messages { min-height: 230px; max-height: 300px; }
}
/* The hidden attribute must not be overridden by display styles. */
.pc-chat-panel [hidden] { display: none !important; }
/* When the participant is signing up, keep all fields visible without clipping. */
.pc-chat-panel:has(#pc-chat-join:not([hidden])) { max-height: none; }

/* V3: todas as pessoas podem acompanhar a conversa sem cadastro. */
.pc-chat-join-trigger { border: 0; border-radius: 10px; background: #45276f; color: #fff; font-weight: 700; font-family: inherit; margin: 0; padding: 13px 18px; align-self: stretch; width: 100%; font-size: 13px; }
.pc-chat-join-trigger:hover { background: #60388c; }
.pc-chat-modal[hidden] { display: none !important; }
.pc-chat-modal { position: fixed; inset: 0; z-index: 2147480000; display: flex; align-items: center; justify-content: center; padding: 18px; font-family: Poppins,Arial,sans-serif; }
.pc-chat-modal-backdrop { position: absolute; inset: 0; background: #150e20a8; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pc-chat-modal-card { --pc-purple:#43256c; --pc-ink:#29193f; --pc-muted:#7a7088; position: relative; width: min(100%, 475px); max-height: min(90vh, 820px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 80px #160d2e66; padding: 24px; color: var(--pc-ink); }
.pc-chat-modal-close { position: absolute; top: 14px; right: 14px; border: 0; border-radius: 50%; width: 34px; height: 34px; background: #f3eff8; color: #43256c; font-size: 16px; cursor: pointer; }
.pc-chat-modal .pc-chat-join h3 { font-size: 22px; padding-right: 35px; margin: 0 0 6px; }
.pc-chat-modal .pc-chat-join p { font-size: 12px; color: #7a7088; margin: 0 0 18px; }
.pc-chat-modal .pc-chat-join form { display: grid; gap: 9px; }
.pc-chat-modal .pc-chat-join form>label:not(.pc-chat-consent) { font-size: 12px; font-weight: 600; }
.pc-chat-modal .pc-chat-join form input:not([type=checkbox]) { height: 44px; padding: 10px 12px; font: inherit; font-size: 13px; border: 1px solid #ded6e6; border-radius: 10px; background: #fff; color: #29193f; width: 100%; box-sizing: border-box; }
.pc-chat-modal .pc-chat-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 8px 0; }
.pc-chat-modal .pc-chat-consent input { width: 16px; height: 16px; accent-color: #43256c; }
.pc-chat-modal .pc-chat-consent span { font-size: 11px; line-height: 1.55; color: #71697b; }
.pc-chat-modal .pc-button-dark { padding: 13px; border: 0; border-radius: 10px; background: #43256c; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.pc-chat-modal .pc-chat-join small { display: block; margin-top: 12px; font-size: 10px; color: #888095; line-height: 1.6; }
body.pc-chat-modal-open { overflow: hidden; }
@media (max-width:700px) { .pc-chat-modal-card { padding: 22px 18px; } .pc-chat-join-trigger { width: calc(100% - 36px); align-self: center; } }

.pc-chat-modal-alert:empty { display: none; }
.pc-chat-modal-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; font-size: 12px; background: #f4f0fa; }
.pc-chat-modal-alert.pc-alert-error { color: #973a2a; background: #fff0ed; }
.pc-chat-modal-alert.pc-alert-success { color: #25764f; background: #e9f7ef; }

/* O botão de entrada substitui apenas a área de digitação, nunca as mensagens. */
.pc-chat-foot:has(.pc-chat-join-trigger:not([hidden])) { padding: 12px 14px; }

/* v9: compact, accessible live polling while the chat remains beside the player. */
.pc-chat-poll{flex-shrink:0;padding:13px 15px 12px;background:linear-gradient(145deg,#faf6ff,#fff);border-bottom:1px solid #e6d9f3;max-height:235px;overflow-y:auto;overscroll-behavior:contain}
.pc-chat-poll[hidden]{display:none!important}.pc-poll-heading{display:flex;justify-content:space-between;align-items:center;gap:7px}.pc-poll-icon{font-size:9px;font-weight:800;letter-spacing:.09em;color:#ee6327}.pc-poll-status{font-size:9px;font-weight:750;background:#e6f7ee;color:#28815a;padding:4px 7px;border-radius:15px}.pc-poll-question{font-size:12px;font-weight:800;margin:9px 0 10px;line-height:1.4;color:#301c4b}.pc-poll-options{display:grid;gap:7px}.pc-poll-option{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;isolation:isolate;border-radius:8px;background:#f5effa;border:1px solid #e8dced;padding:8px 10px;font-size:10px;color:#3e2a57;overflow:hidden;min-height:34px}.pc-poll-option:not(label)::before{content:'';position:absolute;inset:0 auto 0 0;width:var(--pc-vote-share);background:#dfcdef;z-index:-1;transition:width .3s ease}.pc-poll-option-name{overflow-wrap:anywhere;flex:1}.pc-poll-option strong{font-size:10px}.pc-poll-option input{width:14px;min-width:14px;flex-shrink:0;accent-color:#583083}.pc-poll-option:has(input:checked){border-color:#6f4592;background:#efe1fb}.pc-poll-chosen{border-color:#9b77b5}.pc-poll-options .pc-button-dark{padding:8px 11px;font-size:11px;margin-top:3px}.pc-poll-foot{color:#7e7089;margin:8px 0 0;font-size:9px}.pc-poll-join{margin-top:8px;border:0;background:#4b2772;color:#fff;border-radius:9px;padding:9px 11px;font-size:10px;font-weight:700;width:100%}#pc-chat-cooldown{min-height:18px}
@media(max-width:700px){.pc-chat-poll{max-height:225px}}


/* v10 • criação rápida da enquete pelo chat, após autenticação administrativa. */
#pc-admin-create-poll{background:#472971;color:#fff;border-color:#472971;font-weight:800}
#pc-admin-create-poll:hover:not(:disabled){background:#67458f;color:#fff}
#pc-admin-create-poll:disabled{opacity:.5;cursor:not-allowed}
#pc-admin-close-poll{border-color:#e2c9ca;color:#993e34}
.pc-poll-modal[hidden]{display:none!important}
.pc-poll-modal{position:fixed;inset:0;z-index:2147480500;display:flex;align-items:center;justify-content:center;padding:20px;font-family:Poppins,Arial,sans-serif}
.pc-poll-modal-backdrop{position:absolute;inset:0;background:#160d23a8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.pc-poll-modal-card{--pc-purple:#43256c;position:relative;width:min(100%,550px);max-height:min(92dvh,850px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 30px 95px #120b2555;padding:27px 29px;color:#2b1943}
.pc-poll-modal-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:20px}
.pc-poll-modal-top h2{font-size:23px;font-weight:800;line-height:1.24;margin:5px 0 8px;color:#2b1943}
.pc-poll-modal-kicker{font-size:10px;letter-spacing:.15em;color:#f26322;font-weight:800}
.pc-poll-modal-top p{font-size:12px;color:#7e718e;line-height:1.5;margin:0}
.pc-poll-modal-x{flex-shrink:0;border:0;border-radius:10px;background:#f4edf8;color:#4d2a72;font-size:16px;width:38px;height:38px;cursor:pointer}
#pc-poll-create-form{display:grid;gap:8px}
#pc-poll-create-form label{font-size:12px;font-weight:650;margin-top:4px;color:#302046}
#pc-poll-create-form input{height:44px;width:100%;box-sizing:border-box;border:1px solid #ded4e8;border-radius:10px;background:#fff;padding:9px 13px;color:#302046;font:inherit;font-size:13px}
#pc-poll-create-form input:focus{outline:2px solid #e5d4f6;border-color:#77529b}
.pc-poll-modal-alt-title{display:flex;justify-content:space-between;gap:9px;margin-top:10px;font-size:13px;font-weight:800}
.pc-poll-modal-alt-title span{color:#7b7086;font-size:10px;font-weight:500}
.pc-poll-modal-actions{display:flex;gap:10px;margin-top:14px}
.pc-poll-modal-actions button{flex:1 1 auto;padding:12px;border-radius:10px;border:1px solid #ddd1e8;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.pc-poll-modal-cancel{background:#fff;color:#492b6b}
#pc-poll-create-submit{background:#492977;color:#fff;border-color:#492977}
#pc-poll-create-submit:disabled{opacity:.6;cursor:wait}
.pc-poll-modal-feedback{background:#fff0ed;color:#973a2a;padding:10px 12px;border-radius:9px;font-size:12px;margin:6px 0}
body.pc-poll-modal-open{overflow:hidden}
@media(max-width:550px){.pc-poll-modal{padding:12px}.pc-poll-modal-card{padding:21px 17px;border-radius:15px}.pc-poll-modal-top h2{font-size:19px}.pc-poll-modal-actions{flex-direction:column-reverse}}
@media(prefers-reduced-motion:no-preference){.pc-poll-modal-card{animation:pcPollAppear .18s ease-out}@keyframes pcPollAppear{from{transform:translateY(10px);opacity:.8}to{transform:translateY(0);opacity:1}}}
