.dxp-twitch-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 424px;
  padding: 10px;
  border: 2px solid #171310;
  border-radius: 10px;
  background: #ede7da;
  box-shadow: 8px 8px 0 #171310;
  color: #171310;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.dxp-twitch-widget.is-live {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dxp-twitch-widget__header {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 9px;
  padding: 0 2px 9px;
  font-family: Inter, sans-serif;
}

.dxp-twitch-widget__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #e91916;
  box-shadow: 0 0 0 4px rgba(233, 25, 22, .16);
  animation: dxp-twitch-pulse 1.7s ease-in-out infinite;
}

.dxp-twitch-widget__live {
  color: #e91916;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.dxp-twitch-widget__channel {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dxp-twitch-widget__action {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid #171310;
  border-radius: 50%;
  background: transparent;
  color: #171310;
  font: 700 1rem/1 Inter, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dxp-twitch-widget__action:hover {
  background: #171310;
  color: #ede7da;
  transform: translateY(-1px);
}

.dxp-twitch-widget__stage {
  width: 400px;
  height: 300px;
  overflow: hidden;
  border: 2px solid #171310;
  border-radius: 6px;
  background: #0e0e10;
}

.dxp-twitch-widget__stage iframe {
  display: block;
}

.dxp-twitch-widget__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px 1px;
  font: 600 .78rem/1.25 Inter, sans-serif;
}

.dxp-twitch-widget__link {
  color: #171310;
  font-weight: 800;
  text-decoration: none;
}

.dxp-twitch-widget__link:hover {
  color: #9147ff;
}

.dxp-twitch-widget.is-minimized {
  width: 310px;
}

.dxp-twitch-widget.is-offline.is-minimized {
  width: 330px;
}

.dxp-twitch-widget.is-offline .dxp-twitch-widget__dot {
  background: #786f67;
  box-shadow: 0 0 0 4px rgba(120, 111, 103, .14);
  animation: none;
}

.dxp-twitch-widget.is-offline .dxp-twitch-widget__live {
  color: #786f67;
}

.dxp-twitch-widget.is-offline .dxp-twitch-widget__channel::after {
  content: " — volto logo";
  font-weight: 500;
}

.dxp-twitch-widget.is-minimized .dxp-twitch-widget__stage,
.dxp-twitch-widget.is-minimized .dxp-twitch-widget__footer {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.dxp-twitch-widget.is-minimized .dxp-twitch-widget__header {
  padding-bottom: 0;
}

@keyframes dxp-twitch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .48; }
}

@media (max-width: 700px) {
  .dxp-twitch-widget,
  .dxp-twitch-widget.is-minimized {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-width: 360px;
    padding: 9px 10px;
  }

  .dxp-twitch-widget__header {
    min-height: 38px;
    padding-bottom: 0;
  }

  .dxp-twitch-widget__stage,
  .dxp-twitch-widget__footer {
    position: absolute;
    left: -10000px;
    width: 400px;
    height: 300px;
    opacity: 0;
    pointer-events: none;
  }

  .dxp-twitch-widget__minimize {
    display: none;
  }

  .dxp-twitch-widget__channel::after {
    content: " — assistir";
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dxp-twitch-widget,
  .dxp-twitch-widget__action,
  .dxp-twitch-widget__dot {
    animation: none;
    transition: none;
  }
}
