*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#twitch-event-wall.tew-wall {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: grid;
  gap: 4px;
  padding: 4px;
  overflow: hidden;
  align-content: stretch;
  justify-content: stretch;
}

.tew-status, .tew-error {
  color: #efeff1;
  font: 600 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.tew-error {
  color: #ff8280;
}

.tew-empty-state {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 1;
}

.tew-empty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tew-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: #0f0f12;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #1f1f23;
}

.tew-video-wrap {
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #000;
}

.tew-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tew-footer {
  flex: 0 0 28px;
  height: 28px;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  color: #efeff1;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  border-top: 1px solid #1f1f23;
  overflow: hidden;
  white-space: nowrap;
}

.tew-footer-content {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

.tew-channel-name {
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tew-game-name {
  color: #efeff1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tew-goal-wrap {
  color: #adadb8;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tew-goal-val {
  font-weight: 700;
  color: #ffffff;
}

.tew-sep {
  color: #53535f;
  margin: 0 6px;
  font-weight: 400;
}

.tew-wall[data-count="1"] .tew-tile {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
