/* O vídeo e seus controles oficiais ficam sempre visíveis durante a reprodução. */
.pulse-youtube-player {
  position: fixed;
  z-index: 2147481900;
  top: 80px;
  right: 18px;
  width: min(400px, calc(100vw - 24px));
  min-width: 200px;
  color: #f3f6f5;
  background: #191e20;
  border: 1px solid #465049;
  border-radius: 17px;
  box-shadow: 0 22px 64px #0009, inset 0 1px #ffffff07;
  font-family: inherit;
  isolation: isolate;
  animation: pulse-youtube-enter .22s cubic-bezier(.2,.8,.2,1);
}
.pulse-youtube-player *, .pulse-youtube-player *::before, .pulse-youtube-player *::after { box-sizing: border-box; }
.pulse-youtube-player [hidden] { display: none !important; }
.pulse-youtube-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 13px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(125deg, #242c29, #1d2324);
  border-bottom: 1px solid #35403a;
}
.pulse-youtube-brand { display: grid; place-items: center; flex: 0 0 31px; color: #ff514e; }
.pulse-youtube-brand svg { display: block; width: 29px; height: 22px; }
.pulse-youtube-heading { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pulse-youtube-heading small { font-size: 10px; font-weight: 750; line-height: 1.2; letter-spacing: .08em; color: #a0c3b0; text-transform: uppercase; }
.pulse-youtube-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f6f8f7; font-size: 14px; font-weight: 650; line-height: 1.4; }
.pulse-youtube-player button { font-family: inherit; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.pulse-youtube-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid #46504a;
  border-radius: 10px;
  background: #2b3430;
  color: #c9d6cf;
}
.pulse-youtube-close svg { display: block; width: 17px; height: 17px; }
.pulse-youtube-close:hover { background: #49312f; border-color: #a2655d; color: #ffb5a8; }
.pulse-youtube-player button:focus-visible, .pulse-youtube-player:focus-visible { outline: 2px solid #85e7b3; outline-offset: 3px; }
.pulse-youtube-screen {
  display: block;
  width: 100%;
  min-width: 200px;
  height: auto;
  min-height: 225px;
  aspect-ratio: 16 / 9;
  background: #0a0c0c;
}
.pulse-youtube-screen > div, .pulse-youtube-screen > iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 200px;
  min-height: 225px;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pulse-youtube-footer { padding: 11px 13px; border-top: 1px solid #343d38; border-radius: 0 0 16px 16px; background: linear-gradient(135deg, #202823, #1b2121); }
.pulse-youtube-notice { display: flex; align-items: center; gap: 8px; min-height: 29px; }
.pulse-youtube-indicator { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #81948a; }
.pulse-youtube-notice p { margin: 0; flex: 1; min-width: 0; color: #b6c8bd; font-size: 12px; font-weight: 450; line-height: 1.5; overflow-wrap: anywhere; }
.pulse-youtube-action { flex: 0 0 auto; max-width: 48%; padding: 7px 10px; border: 1px solid #79dba456; border-radius: 9px; background: #284d37; color: #b7f4d0; font-size: 11px; font-weight: 750; line-height: 1.35; }
.pulse-youtube-action:hover { background: #346248; border-color: #88efb9; color: #effff5; }
.pulse-youtube-action:disabled { opacity: .5; cursor: default; }
.pulse-youtube-follow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #39423c; }
.pulse-youtube-follow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5e6dc; font-size: 12px; font-weight: 600; }
.pulse-youtube-follow > button { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #5a665e; border-radius: 8px; background: transparent; color: #cbd7cf; font-size: 11px; font-weight: 700; }
.pulse-youtube-follow > button:hover { border-color: #d99a67; background: #413327; color: #ffd2ab; }
.pulse-youtube-player[data-state="playing"] { border-color: #559c7270; }
.pulse-youtube-player[data-state="playing"] .pulse-youtube-indicator { background: #73dda3; box-shadow: 0 0 0 4px #73dda314; }
.pulse-youtube-player[data-state="loading"] .pulse-youtube-indicator { background: #a4dabd; animation: pulse-youtube-breathe 1.3s ease-in-out infinite; }
.pulse-youtube-player[data-state="paused"] .pulse-youtube-indicator { background: #be9beb; }
.pulse-youtube-player[data-state="paused"] .pulse-youtube-notice p { color: #cbbada; }
.pulse-youtube-player[data-state="error"] { border-color: #d27c616e; }
.pulse-youtube-player[data-state="error"] .pulse-youtube-indicator { background: #ffad86; }
.pulse-youtube-player[data-state="error"] .pulse-youtube-notice { align-items: flex-start; }
.pulse-youtube-player[data-state="error"] .pulse-youtube-indicator { margin-top: 6px; }
.pulse-youtube-player[data-state="error"] .pulse-youtube-notice p { color: #f0c4b1; }
.pulse-youtube-player.is-emphasized { animation: pulse-youtube-focus .7s ease; }
@keyframes pulse-youtube-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-youtube-breathe { 50% { box-shadow: 0 0 0 4px #a4dabd1a; opacity: .45; } }
@keyframes pulse-youtube-focus { 50% { box-shadow: 0 22px 64px #0009, 0 0 0 3px #85e7b357; } }
@media (min-width: 901px) {
  body.pulse-radio-open .pulse-youtube-player { right: calc(min(380px, calc(100vw - 24px)) + 30px); }
}
@media (max-width: 560px) {
  .pulse-youtube-player { top: 70px; right: 12px; }
  .pulse-youtube-head { min-height: 58px; padding: 10px 11px; }
  .pulse-youtube-screen, .pulse-youtube-screen > div, .pulse-youtube-screen > iframe { min-height: 200px; }
  .pulse-youtube-heading strong { font-size: 13px; }
  .pulse-youtube-notice { flex-wrap: wrap; }
  .pulse-youtube-notice p { flex-basis: calc(100% - 20px); }
  .pulse-youtube-action { max-width: 100%; margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-youtube-player, .pulse-youtube-player.is-emphasized, .pulse-youtube-player .pulse-youtube-indicator { animation: none; }
  .pulse-youtube-player button { transition: none; }
}
