html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ep {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ep__label {
  font-size: 12px;
  font-weight: 700;
  color: #fff7e6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ep__sub {
  font-size: 10px;
  color: rgba(255, 247, 230, 0.72);
}

.ep__recent {
  list-style: none;
  margin: 0;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255, 247, 230, 0.08);
  border-radius: 12px;
  min-height: 44px;
}

.ep__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 36px;
  padding: 4px 0;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.1);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ep__item--enter {
  animation: epPop 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ep__rank {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.ep__ch {
  font-size: 19px;
  line-height: 1;
}

.ep__count {
  font-size: 9px;
  color: rgba(255, 247, 230, 0.74);
}

.ep__all {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 26px;
  gap: 4px;
}

.ep__all-btn {
  border: none;
  background: rgba(255, 247, 230, 0.06);
  color: #fff7e6;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ep__all-btn:hover, .ep__all-btn:focus-visible {
  background: rgba(255, 247, 230, 0.18);
}

.ep__all-btn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 1px;
}

.ep__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@keyframes epPop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .ep {
    width: 100%;
  }
  .ep__all {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ep__item {
    transition: none;
  }
  .ep__item--enter {
    animation: none;
  }
}
