/*  chart.css (전역 스타일 + import 모음) */
@import url('/partials/chart/css/header.css');
@import url('/partials/chart/css/filter.css');
@import url('/partials/chart/css/panel.css');
@import url('/partials/chart/css/chart-list.css');
@import url('/partials/layout/css/header.css');
@import url('/partials/layout/css/bottom-bar.css');

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'Pretendard', 'Pretendard JP', sans-serif;
  color: #000;
  overflow-x: hidden;
  padding-bottom: 80px; /*  바텀바 높이 + 여유 공간 */
}

#chart-app {
  padding: 80px 1rem 100px;
  box-sizing: border-box;
  width: 100%;
  max-width: 860px; /*  너비는 원하는 대로 조절 (예: 800~960px 사이) */
  margin: 0 auto; /*  가운데 정렬 */
}
.chart-wrapper {
  display: flex;
  justify-content: left;
  padding: 1rem;
  display: block; /* 또는 flex-start로 남기되 justify-content는 제거 */
}
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 4px solid #ccc;
  border-top-color: #5409DA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.chart-disclaimer.inline-disclaimer {
  font-size: 0.68rem;
  color: #aaa;
  margin: 8px 14px 12px;
  line-height: 1.4;
  text-align: left;
}
.chart-disclaimer.inline-disclaimer a {
  color: #aaa;
  text-decoration: underline;
  font-style: italic;
}
.chart-card.feat-song {
  background-color: #f8f4ff;
  
}

.feat-tag {
  font-size: 0.75rem;
  color: #a18cd1;
  margin-top: 2px;
}
.chart-card {
  position: relative;
}

.feat-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(to right, #a18cd1, #fbc2eb);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.beta-label {
  display: inline-block;
  font-size: 1rem;              /* 기존보다 살짝 키움 */
  font-weight: 600;
  color: #5b429f;                  /* 더 연한 보라색 */
  background: #ece6f7;             /* 연보라 배경 */
  padding: 6px 14px;               /* 살짝 더 두툼하게 */
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: none;
  letter-spacing: 0.4px;
}

.chart-header-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.rank-diff {
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 2px;
  font-weight: 500;
}

.rank-diff.up {
  color: #5ca76b; /* 연한 초록 */
  font-size: 0.75rem;
}

.rank-diff.down {
  color: #d97171; /* 연한 빨강 */
  font-size: 0.75rem;
}

.rank-diff.same {
  color: #999;
  font-size: 0.75rem;
}

.rank-diff.new {
  color: #444;
  font-size: 0.75rem;
  font-weight: bold;
}