:root:not(.vote-results-embedded) { scrollbar-gutter: stable; }

.kpop-tab-row {
  position: relative;
  display: block;
  --tab-fade: calc(var(--tab-arrow-width) + 10px);
}

.kpop-tab-row .kpop-category-arrow {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.kpop-tab-row .kpop-category-arrow--left { inset-inline-start: 0; }
.kpop-tab-row .kpop-category-arrow--right { inset-inline-end: 0; }
.kpop-tab-scroller { scroll-padding-inline: calc(var(--tab-arrow-width) + 8px); }

.update { flex-wrap: wrap; }
.update .vote-updated-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.update .vote-updated-button {
  display: inline-flex;
  flex-shrink: 1;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.update .vote-updated-button:hover { background: #0e1435; }
.vote-updated-button[data-vote-refresh="4"] .vote-provider-logo { height: 20px; }
.vote-updated-button .vote-provider-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-vote-status]:empty { display: none; }
[data-vote-status]:not(:empty) + .kpop-card-grid { margin-top: 12px; }

.kpop-card__stats { flex-wrap: wrap; }

.kpop-card__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

@media (max-width: 640px) {
  .kpop-tab-row { --tab-fade: calc(var(--tab-arrow-width) + 6px); }
  .update h4 { margin-block: 0; }
  [data-vote-status]:not(:empty) + .kpop-card-grid { margin-top: 0; }
  .kpop-card__metric { gap: 4px; white-space: normal; }
}
