@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: #fff;
}
main{
  position: relative;
}
img{
  max-width: 100%;
  display: block;
}
:root {
  --primary-color: #fb02b5;
  --primary-color-rgba: rgba(251, 2, 181, 0.5);
}

a{
  color: var(--primary-color);
  text-decoration: none;
}
a:hover{
  color: #00ccff;
}
.top, .bottom{
  position: fixed;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  cursor: pointer;
}
.top{
  top: 0;
  left: 0;
}
.bottom{
  right: 0;
  bottom: 0;
}
#online{
  max-width: 945px;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 150px;
  row-gap: 10px;
  padding: 13px 10px 7px;
  box-sizing: border-box;
}
#online:hover ~ .top{
  transform: translateY(-100%);
  opacity: 0;
}
#online:hover ~ .bottom{
  transform: translateY(100%);
  opacity: 0;
}
.top,
.bottom{
  position: absolute;
  z-index: 100;
}
.top span,
.bottom span{
  position: relative;
  display: inline-block;
  height: 16px;
  color: #fff;
  line-height: 16px;
  font-size: 10px;
  padding-bottom: 3px;
  background-color: var(--primary-color);
}
.top{
  top: 0;
  left: 0;
}
.bottom{
  bottom: 0;
  right: 0;
}
.top span{
  padding-left: 20px;
  letter-spacing: 1px;
}
.top span i{
  position: absolute;
  top: -3px;
  left: 2px;
  font-size: 16px;
}
.top span::after{
  content: '';
  position: absolute;
  top: 0;
  right: -16px;
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 16px 0px 0px;
  border-color: var(--primary-color) transparent transparent transparent;
  
}

.bottom span::before{
  content: '';
  position: absolute;
  bottom: 0;
  left: -16px;
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent var(--primary-color) transparent;  
}

#online::before,
#online::after{
  content: '';
  position: absolute;
  z-index: 100;
  left: 0;
  width: 100%;
  height: 5px;
  display: block;
  background-color: var(--primary-color);
}
#online::before{
  top: 0;
}
#online::after{
  bottom: 0;
}
.viewer, .inroom{
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  padding: 2px 3px;
  letter-spacing: 1px;
}
.viewer{
  background-color: var(--primary-color-rgba);
  color: #fff;
}
.inroom{
  background-color: var(--primary-color);
  color: #ff0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.item{
  position: relative;
  width: 126px;
}
.item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 2px;
}