/* TOP 랭킹 layout (from original theme + page) */

.top-rank-page .section-wrap {
  padding: 4px 0 24px;
}

.top-rank-page .content-root.section-inner {
  width: 100%;
}

.top-rank-page h2.ui.header {
  color: #fff !important;
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 18px;
}

.top-rank-page .video-section-root {
  overflow: visible !important;
}

.top-rank-page .grid-container {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.top-rank-page .popular-list-item {
  flex: 0 0 20%;
  max-width: 20%;
  overflow: visible;
}

.top-rank-page .popular-list-item .popular-item {
  margin: 0 8px;
  padding: 32px 16px 24px;
  background: #2d2d2d;
  border: 1px solid #5b5b5b;
  border-radius: 8px;
  text-align: center;
  overflow: visible;
}

.top-rank-page .popular-list-item img.ui.circular.image {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

.top-rank-page .top-rank-table {
  width: 100%;
  border-collapse: collapse;
  color: #e0e0e0;
}

.top-rank-page .top-rank-table thead th {
  padding: 14px 10px;
  text-align: left;
  color: #aaa;
  font-weight: 500;
  border-bottom: 1px solid #444;
  background: transparent;
}

.top-rank-page .top-rank-table tbody td {
  padding: 16px 10px;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

.top-rank-page .rank-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-rank-page .rank-avatar-info {
  min-width: 0;
}

.top-rank-page .rank-avatar-title {
  color: #fff;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.top-rank-page .rank-avatar-subtitle {
  color: #999;
  margin-top: 4px;
  font-size: 13px;
}

.top-rank-page .rank-avatar-cell .live-avatar-wrapper img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

.top-rank-page .popular-item-info {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .top-rank-page .popular-list-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  .top-rank-page .grid-container {
    flex-wrap: wrap;
    row-gap: 16px;
  }
}

@media (max-width: 768px) {
  .top-rank-page .popular-list-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
