.twitch-widget{
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 420px;
  max-width: calc(100vw - 24px);
  z-index: 35;
  border: 1px solid rgba(143,173,214,.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6,13,23,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}

.twitch-widget[hidden]{
  display: none !important;
}

.twitch-widget__close{
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;

  font-size: 22px;
  cursor: pointer;

  border-bottom-left-radius: 10px;
}

.twitch-widget__close{
  opacity: 0.6;
  transition: opacity .2s ease;
}

.twitch-widget:hover .twitch-widget__close{
  opacity: 1;
}

.twitch-widget__close:hover{
  border-color: rgba(98,208,255,.38);
  background: rgba(98,208,255,.08);
}

.twitch-widget__player{
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
}

body.nav-open .twitch-widget{
  display: none !important;
}

@media (max-width: 520px){
  .twitch-widget{
    left: 8px;
    bottom: 8px;
    width: min(400px, calc(100vw - 16px));
    border-radius: 14px;
  }

  .twitch-widget__close{
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .twitch-widget__player{
    min-height: 300px;
  }
}