:root {
  --renew-bg: #f6f9fc;
  --renew-surface: #ffffff;
  --renew-surface-2: #f2f7fb;
  --renew-text: #172033;
  --renew-muted: #728197;
  --renew-line: #e6edf4;
  --renew-primary: #3d9ce8;
  --renew-primary-deep: #1a6fd6;
  --renew-primary-soft: #e8f2ff;
  --renew-success: #28a66a;
  --renew-hanteo: #2a78d6;
  --renew-hanteo-soft: #eff6ff;
  --renew-shadow: 0 12px 35px rgba(31, 72, 102, 0.09);
  --renew-radius: 22px;
}

.renew-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 80px;
}

.renew-page-shell * {
  box-sizing: border-box;
}

.renew-page-shell button,
.renew-page-shell select {
  font: inherit;
}

.renew-song-switch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin-bottom: 14px;
  background: var(--renew-surface-2);
  border: 1px solid var(--renew-line);
  border-radius: 14px;
}

.renew-song-label {
  font-size: 12px;
  font-weight: 900;
  color: #5a6b80;
  flex: none;
}

.renew-select-wrap {
  position: relative;
  flex: 0 0 240px;
}

.renew-select-wrap select {
  width: 100%;
  appearance: none;
  background: #f8fbfd;
  border: 1px solid #dde8f0;
  border-radius: 15px;
  padding: 15px 42px 15px 15px;
  color: var(--renew-text);
  font-weight: 800;
  outline: none;
}

.renew-chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #76879a;
}

.renew-song-note {
  flex: 1;
  font-size: 11px;
  color: #8494a8;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.renew-hero {
  margin-bottom: 16px;
}

.renew-hero-card,
.renew-panel {
  background: var(--renew-surface);
  border: 1px solid var(--renew-line);
  border-radius: var(--renew-radius);
  box-shadow: var(--renew-shadow);
}

.renew-hero-card {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #eaf3ff, #f7fbff);
}

.renew-hero-card.has-cover-photo .renew-hero-bg::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 60%), linear-gradient(90deg, rgba(10, 24, 43, .64), rgba(10, 24, 43, .22) 58%, rgba(255, 255, 255, .24));
}

.renew-hero-card:after {
  display: none;
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -70px;
  top: -85px;
  background: radial-gradient(circle, #bfe0ff 0, #ddeeff 55%, transparent 72%);
}

.renew-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
}

.renew-hero-bg.visible {
  opacity: 0.62;
}

.renew-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0.55));
}

.renew-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: flex-start;
  max-width: calc(100% - 150px);
}

.renew-status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(31, 72, 102, 0.1);
  font-size: 12px;
  color: var(--renew-primary-deep);
  font-weight: 800;
}

.renew-status-badge.ended {
  color: #d64545;
}

.renew-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27bd7a;
  box-shadow: 0 0 0 4px #e6f8ef;
  flex: none;
}

.renew-eyebrow {
  font-size: 13px;
  color: var(--renew-primary-deep);
  font-weight: 900;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.renew-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27bd7a;
  box-shadow: 0 0 0 4px #e6f8ef;
}

.renew-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27bd7a;
  box-shadow: 0 0 0 4px #e6f8ef;
}

.renew-hero-copy h1 {
  max-width: 100%;
  max-height: 2.5em;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow-wrap: break-word;
  word-break: keep-all;
}

.renew-meta {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.renew-hero-card .renew-pill {
  white-space: nowrap;
}

.renew-hero-copy h1 {
  color: #fff;
}

.renew-album {
  font-size: 14px;
  color: var(--renew-muted);
  margin-bottom: 18px;
}

.renew-meta {
  min-width: 0;
}

.renew-pill {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--renew-surface-2);
  color: #53647c;
  font-size: 12px;
  font-weight: 800;
}

.renew-pill-current {
  background: #e9f9f1;
  color: #20825a;
}

.renew-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 2px 14px;
}

.renew-section-head h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--renew-text);
}

.renew-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--renew-muted);
}

.renew-sales-panel {
  padding: 24px;
}

.renew-sales-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  background: var(--renew-surface-2);
  border-radius: 12px;
  padding: 4px;
  width: 100%;
}

.renew-sales-tab {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  color: #6d7c90;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.renew-sales-tab.active {
  background: white;
  color: var(--renew-text);
  box-shadow: 0 2px 8px rgba(31, 72, 102, 0.1);
}

.renew-sales-body {
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.renew-sales-body-hanteo {
  background: transparent;
}

.renew-sales-body-circle {
  background: transparent;
}

.album-sales-main {
  width: 100%;
  padding: 18px 20px 16px;
  border: 1px solid var(--renew-line);
  border-radius: 16px;
  background: var(--renew-surface-2);
}

.renew-sales-body-hanteo .album-sales-main {
  background: var(--renew-hanteo-soft);
}

.renew-sales-body-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

.renew-sales-label {
  font-size: 12px;
  margin: 0;
  font-weight: 800;
}

.renew-sales-body-hanteo .renew-sales-label {
  color: var(--renew-hanteo);
}

.renew-sales-body-circle .renew-sales-label {
  color: #5a6b80;
}

.renew-sales-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.renew-sales-body-hanteo .renew-sales-badge {
  background: rgba(255, 255, 255, 0.65);
  color: var(--renew-hanteo);
}

.renew-sales-body-circle .renew-sales-badge {
  background: white;
  color: #6d7c90;
}

.circle-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.circle-extra-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: rgba(248, 251, 255, .82);
}

.circle-extra-card h3 {
  margin: 0 0 10px;
  color: var(--renew-muted);
  font-size: 11px;
  line-height: 1.35;
}

.circle-extra-card > strong {
  display: block;
  color: var(--renew-text);
  font-size: 20px;
  line-height: 1.2;
}

.circle-extra-card p {
  margin: 7px 0 0;
  color: var(--renew-muted);
  font-size: 10px;
}

.circle-extra-products {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.circle-extra-products span,
.circle-weekly-card div div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  color: var(--renew-muted);
  font-size: 10px;
}

.circle-extra-products strong,
.circle-weekly-card div strong {
  color: var(--renew-text);
  font-weight: 800;
}

.circle-weekly-card > div {
  display: grid;
  gap: 7px;
  color: var(--renew-muted);
  font-size: 10px;
  line-height: 1.35;
}

.circle-weekly-card .circle-weekly-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.circle-weekly-card-head h3 {
  min-width: 0;
}

.circle-weekly-more {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--renew-primary-deep);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.circle-weekly-group {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef4;
}

.circle-weekly-group:last-child {
  border-bottom: 0;
}

.circle-weekly-card #circleRetailWeekly .circle-weekly-group {
  display: grid;
  width: 100%;
  justify-content: initial;
}

.circle-weekly-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.circle-weekly-group-head b {
  color: var(--renew-primary-deep);
}

.circle-weekly-group-head span {
  color: var(--renew-muted);
}

.circle-weekly-modal-list {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.circle-weekly-modal-list .circle-weekly-group {
  padding: 12px 0;
}

#circleWeeklyTitle span {
  display: block;
  color: var(--renew-muted);
  font-size: 13px;
  font-weight: 700;
}

.circle-weekly-empty {
  margin: 0;
  color: var(--renew-muted);
  font-size: 12px;
}

.circle-weekly-row {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef4;
}

.circle-weekly-row:last-child {
  border-bottom: 0;
}

.circle-weekly-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.circle-weekly-meta b {
  color: var(--renew-primary-deep);
}

.circle-weekly-meta span {
  color: var(--renew-muted);
}

.circle-weekly-product {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.circle-weekly-card #circleRetailWeekly .circle-weekly-product {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.circle-weekly-product span {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.circle-weekly-product strong {
  flex: 0 0 auto;
  color: var(--renew-text);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .circle-weekly-modal-list {
    max-height: 62vh;
  }

  .circle-weekly-modal-list .circle-weekly-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    width: 100%;
  }

  .circle-weekly-modal-list .circle-weekly-product span {
    width: auto;
    min-width: 0;
  }

  .circle-weekly-modal-list .circle-weekly-product strong {
    align-self: start;
  }
}

.renew-modal-open {
  overflow: hidden;
}

.circle-weekly-card h3 span {
  display: block;
  font-weight: 700;
}

.circle-extra-card > strong:only-child {
  margin-bottom: 0;
}

.renew-retail-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  color: var(--renew-muted);
  font-size: 11px;
}

.renew-retail-products span {
  display: inline-flex;
  gap: 6px;
}

.renew-retail-products strong {
  color: var(--renew-text);
}

.renew-retail-weekly {
  margin-top: 10px;
  color: var(--renew-muted);
  font-size: 10px;
  line-height: 1.5;
}

.renew-retail-weekly b {
  color: var(--renew-primary-deep);
}

.renew-sales-number {
  font-size: 32px;
  font-weight: 1000;
  margin: 2px 0 10px;
  letter-spacing: -0.03em;
}

.renew-sales-notice {
  margin: 0;
  color: var(--renew-muted);
  font-size: 11px;
}

.renew-sales-body-hanteo .renew-sales-number {
  color: var(--renew-hanteo);
}

.renew-sales-chart {
  height: 170px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.circle-sales-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 92px;
  padding: 7px 9px;
  border: 1px solid #d7e6f5;
  border-radius: 8px;
  background: rgba(23, 32, 51, .94);
  box-shadow: 0 6px 16px rgba(31, 72, 102, .16);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
}

.circle-sales-tooltip[hidden] {
  display: none;
}

.circle-sales-tooltip strong,
.circle-sales-tooltip span {
  display: block;
}

.renew-sales-body-hanteo .renew-sales-chart { cursor: pointer; }

.renew-sales-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.renew-sales-tooltip {
  position: absolute;
  top: 6px;
  min-width: 112px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 32, 51, .92);
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 2;
}

.renew-sales-tooltip strong,
.renew-sales-tooltip span {
  display: block;
}

.hidden {
  display: none;
}

.renew-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.renew-summary-card {
  background: white;
  border: 1px solid var(--renew-line);
  border-radius: 18px;
  padding: 16px 15px;
  box-shadow: 0 7px 22px rgba(31, 72, 102, 0.045);
  cursor: pointer;
  transition: 0.15s ease;
}

.renew-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 72, 102, 0.09);
  border-color: #cfe4f4;
}

.renew-appname {
  font-size: 12px;
  color: #66768b;
  font-weight: 900;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.renew-rank {
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.renew-rank-label {
  font-size: 10px;
  color: #91a0b1;
  margin-top: 2px;
}

.renew-subrank {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #e8eef3;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7a899c;
}

.renew-subrank strong {
  color: #415168;
}

.renew-more-btn {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #e8eef3;
  font-size: 11px;
  font-weight: 800;
  color: var(--renew-primary-deep);
}

.renew-app-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
  color: white;
}

.renew-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.renew-app-icon.line { background: #06c755; }
.renew-app-icon.melon { background: #00cd3c; }
.renew-app-icon.flo { background: #7132f5; }
.renew-app-icon.bugs { background: #f9a01b; }
.renew-app-icon.billboard { background: #1a1a1a; }
.renew-app-icon.circle { background: #1a6fd6; }

.renew-twin-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 14px;
}

.renew-yt-card,
.renew-todo-card {
  padding: 22px;
}

.renew-yt-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.renew-yt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--renew-yt-image);
  background-position: center;
  background-size: cover;
  opacity: .48;
  filter: saturate(.8);
}

.renew-yt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .72);
}

.renew-yt-card > * {
  position: relative;
  z-index: 1;
}

.renew-yt-chart { cursor: pointer; }
.renew-trend-modal[hidden] { display: none; }
.renew-trend-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.renew-trend-backdrop { position: absolute; inset: 0; background: rgba(13, 27, 42, .46); }
.renew-trend-dialog { position: relative; width: min(520px, 100%); padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(13, 27, 42, .24); }
.renew-trend-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.renew-trend-header h2 { margin: 0; font-size: 18px; }
.renew-trend-header button { border: 0; background: none; color: #9aa3ad; font-size: 24px; cursor: pointer; }
.renew-trend-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.renew-trend-summary div { padding: 12px; border-radius: 10px; background: #f6f6f4; }
.renew-trend-summary span, .renew-trend-goal small { display: block; color: #929292; font-size: 11px; }
.renew-trend-summary strong { display: block; margin-top: 6px; font-size: 16px; }
.renew-trend-summary div:nth-child(2) strong { color: #00a878; }
.renew-trend-summary div:nth-child(3) strong { color: #2f6bf0; }
.renew-trend-chart-wrap { height: 220px; position: relative; margin: 18px 0 12px; }
.renew-trend-chart-wrap canvas { width: 100%; height: 100%; display: block; }
.renew-trend-chart-wrap > div { position: absolute; min-width: 120px; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(35, 71, 108, .16); color: #1d4f9b; font-size: 12px; pointer-events: none; transform: translateY(-100%); }
.renew-trend-chart-wrap > div strong, .renew-trend-chart-wrap > div span, .renew-trend-chart-wrap > div small { display: block; }
.renew-trend-chart-wrap > div span { margin-top: 3px; color: #17243a; font-weight: 800; }
.renew-trend-chart-wrap > div small { margin-top: 2px; color: #718096; }
.circle-retail-detail-tooltip { position: absolute; z-index: 3; min-width: 112px; padding: 7px 9px; border-radius: 8px; background: rgba(23, 32, 51, .94); box-shadow: 0 6px 16px rgba(31, 72, 102, .16); color: #fff; font-size: 11px; line-height: 1.4; pointer-events: none; transform: translateY(-100%); }
.circle-retail-detail-tooltip[hidden] { display: none; }
.circle-retail-detail-tooltip strong, .circle-retail-detail-tooltip span { display: block; }
.circle-retail-detail-tooltip span { margin-top: 3px; font-weight: 800; }
.circle-album-more { margin-top: 10px; padding: 7px 11px; border: 1px solid #d7e6f5; border-radius: 9px; background: #fff; color: var(--renew-primary-deep); font-size: 12px; font-weight: 800; cursor: pointer; }
.circle-album-snapshot-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding-top: 8px; border-top: 1px solid #edf0f3; }
.circle-album-snapshot { padding: 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fbfcfe; }
.circle-album-snapshot.is-representative { border-color: #c9dcff; background: #f3f8ff; }
.circle-album-snapshot-head, .circle-album-snapshot-values { display: flex; justify-content: space-between; gap: 12px; }
.circle-album-snapshot-head { align-items: baseline; color: var(--renew-text); font-weight: 800; }
.circle-album-snapshot-head span { color: var(--renew-primary-deep); font-size: 12px; }
.circle-album-snapshot-name { margin: 5px 0 9px; color: #52647a; font-size: 12px; }
.circle-album-snapshot-values { color: #718096; font-size: 11px; }
.circle-album-snapshot-values strong { color: var(--renew-text); font-size: 13px; }
.hanteo-detail-list { display: grid; grid-template-columns: 1fr; gap: 7px; max-height: 220px; overflow-y: auto; padding-top: 8px; border-top: 1px solid #edf0f3; }
.hanteo-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fbfcfe; color: #718096; font-size: 12px; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.hanteo-detail-row:hover, .hanteo-detail-row:focus-within { border-color: #c9dcff; background: #f3f8ff; transform: translateY(-1px); }
.hanteo-detail-row strong { color: #2a78d6; font-size: 14px; }
.hanteo-detail-row small { margin-left: 5px; color: #00a878; font-size: 11px; font-weight: 800; }
.hanteo-detail-row small.is-first { color: #929292; }
.renew-trend-goal { text-align: center; color: #2f6bf0; font-size: 13px; }
.renew-trend-goal > div { height: 7px; margin: 10px 0; border-radius: 8px; background: #dce8f8; overflow: hidden; text-align: left; }
.renew-trend-goal > div span { display: block; height: 100%; width: 0; border-radius: inherit; background: #2f7fe1; }
.renew-trend-filters { display: flex; gap: 7px; margin-top: 16px; }
.renew-trend-filters button { flex: 1; padding: 8px; border: 1px solid #e5e8ec; border-radius: 20px; background: #fff; color: #a7a7a7; cursor: pointer; }
.renew-trend-filters button.active { border-color: #c9dcff; background: #edf4ff; color: #2f6bf0; }

.renew-yt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.renew-yt-title {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.renew-yt-title span {
  color: var(--renew-primary-deep);
}

.renew-yt-link {
  font-size: 11px;
  color: var(--renew-primary-deep);
  font-weight: 800;
  text-decoration: none;
}

.renew-yt-number {
  font-size: 26px;
  font-weight: 1000;
  margin: 6px 0 12px;
  letter-spacing: -0.03em;
}

.renew-yt-chart {
  height: 110px;
  position: relative;
  margin-bottom: 14px;
}

.renew-yt-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.renew-yt-goal-text {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
}

.renew-yt-goal-text b {
  color: var(--renew-hanteo);
}

.renew-yt-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #dce9fa;
  overflow: hidden;
  margin-bottom: 6px;
}

.renew-yt-bar-fill {
  height: 100%;
  background: var(--renew-hanteo);
  border-radius: 999px;
}

.renew-yt-remaining {
  font-size: 11px;
  color: var(--renew-muted);
  margin: 0;
}

.renew-todo-card {
  display: flex;
  flex-direction: column;
}

.renew-todo-title {
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 12px;
}

.renew-todo-image {
  flex: 1;
  min-height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef6ff, #f7fbff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb2c8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}

.renew-todo-link {
  margin-top: 12px;
  font-size: 12px;
  color: var(--renew-primary-deep);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.renew-app-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px 80px;
}

.renew-line-chart-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 8px;
  border: 1px solid #dfeaf4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.renew-line-chart-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f7f9fc;
  color: #36485b;
  font-weight: 800;
  cursor: pointer;
}

.renew-line-chart-tabs button.active {
  background: linear-gradient(180deg, #2f87ff, #1f70ef);
  color: #fff;
}

.renew-line-chart-tabs--circle {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.renew-back-link {
  border: 0;
  background: var(--renew-surface-2);
  color: #4b5c72;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  min-height: 46px;
  text-decoration: none;
  white-space: nowrap;
}

.renew-detail-rank {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--renew-muted);
  font-size: 13px;
  font-weight: 800;
}

.renew-detail-rank strong {
  color: var(--renew-text);
  font-size: 24px;
}

.renew-all-time-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.renew-all-time-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dfeaf4;
  border-radius: 15px;
  background: var(--renew-surface);
}

.renew-all-time-card span,
.renew-all-time-card strong {
  display: block;
}

.renew-all-time-card span {
  color: var(--renew-muted);
  font-size: 12px;
  font-weight: 800;
}

.renew-all-time-card strong {
  margin-top: 5px;
  color: var(--renew-text);
  font-size: 24px;
}

.renew-period-panel {
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 780px) {
  .renew-line-chart-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .renew-line-chart-tabs::-webkit-scrollbar {
    display: none;
  }

  .renew-line-chart-tabs button {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 16px;
  }
}

.renew-period-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.renew-period-info span {
  font-size: 12px;
  color: var(--renew-muted);
}

.renew-segmented {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.renew-segmented button {
  border: 0;
  background: #f1f5f8;
  color: #6d7c90;
  padding: 9px 13px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.renew-segmented button.active {
  background: var(--renew-text);
  color: white;
}

.renew-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.renew-pagination button,
.renew-table-pagination button {
  border: 0;
  background: #f1f5f8;
  color: #52647a;
  padding: 9px 13px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.renew-pagination button:disabled,
.renew-table-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.renew-rank-refresh {
  border: 1px solid var(--renew-primary);
  background: var(--renew-surface);
  color: var(--renew-primary-deep);
}

.renew-rank-refresh.is-loading {
  cursor: wait;
  opacity: .72;
}

.renew-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(23, 32, 51, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.renew-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.renew-pagination span,
.renew-table-pagination span {
  min-width: 42px;
  text-align: center;
  color: var(--renew-muted);
  font-size: 12px;
  font-weight: 800;
}

.renew-table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.renew-chart-panel {
  padding: 24px;
  margin-top: 12px;
}

.youtube-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.youtube-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}

.youtube-refresh-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, .16);
}

.youtube-refresh-btn:active:not(:disabled) {
  transform: scale(.92);
}

.youtube-refresh-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.youtube-refresh-btn.is-loading svg {
  animation: refresh-spin .8s linear infinite;
}

@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.youtube-refresh-btn:disabled {
  background: rgba(148, 163, 184, .12);
  color: #94a3b8;
  cursor: not-allowed;
}

.renew-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.renew-chart-best {
  text-align: right;
  font-size: 12px;
  color: var(--renew-muted);
}

.renew-chart-best strong {
  font-size: 17px;
  color: var(--renew-text);
  display: block;
}

.renew-chart-wrap {
  height: 280px;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(#fbfdff, #fff);
  border: 1px solid #edf2f6;
  overflow: hidden;
  padding: 14px 14px 4px;
}

.renew-chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.renew-chart-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  transform: translate(-50%, -100%);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(23, 32, 51, 0.92);
  color: white;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  z-index: 2;
}

.renew-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: #8190a2;
  font-size: 11px;
}

.renew-chart-foot b {
  color: #53647b;
}

.renew-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.renew-full-table th,
.renew-full-table td {
  padding: 16px 8px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
}

.renew-full-table td:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--renew-primary-deep);
}

.renew-full-table th {
  color: #8492a4;
  font-weight: 800;
}

.renew-full-table td:last-child,
.renew-full-table th:last-child {
  text-align: right;
}

.renew-full-table td:last-child strong {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.renew-full-table .renew-rank-emoji {
  font-size: 16px;
}

.renew-full-table td:last-child strong.is-top-ten {
  font-size: 24px;
}

.renew-full-table td:last-child strong.is-top-ten .renew-rank-emoji {
  font-size: 22px;
}

.renew-full-table tr.is-expandable {
  cursor: pointer;
}

.renew-full-table tr.is-expandable:hover td {
  background: #f7fafc;
}

.renew-full-table tr.renew-full-table-details td {
  padding: 0 8px 14px;
  background: #f7fafc;
}

.renew-record-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 12px;
  border-left: 2px solid #d7e6f0;
  color: #71849a;
  font-size: 11px;
}

.renew-record-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.renew-record-list time {
  color: #94a2b2;
}

.renew-record-list strong {
  color: var(--renew-primary-deep);
}

@media (max-width: 900px) {
  .renew-page-shell {
    padding: 20px 16px 60px;
  }

  .renew-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .renew-twin-row {
    grid-template-columns: 1fr;
  }

  .renew-song-switch-bar {
    flex-wrap: wrap;
  }

  .renew-song-note {
    flex-basis: 100%;
    text-align: left;
    white-space: normal;
  }

  .circle-extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .circle-extra-card {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .renew-page-shell {
    padding: 20px 14px 60px;
  }

  .renew-hero-card {
    padding: 19px;
    min-height: 170px;
    gap: 16px;
    border-radius: 19px;
  }

  .renew-hero-card::after {
    display: none;
  }

  .renew-hero-copy h1 {
    font-size: 24px;
  }

  .renew-hero-card .renew-meta {
    left: 19px;
    bottom: 19px;
  }

  .renew-pill {
    padding: 6px 9px;
    font-size: 10px;
  }

  .renew-status-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px 6px 9px;
    font-size: 10px;
  }

  .renew-song-switch-bar {
    padding: 9px 12px;
    border-radius: 12px;
  }

  .renew-select-wrap {
    flex: 1;
  }

  .renew-section-head {
    margin: 23px 2px 11px;
    align-items: center;
  }

  .renew-section-head h2 {
    font-size: 18px;
  }

  .renew-section-head p {
    display: none;
  }

  .renew-sales-panel,
  .renew-chart-panel,
  .renew-yt-card,
  .renew-todo-card {
    padding: 16px;
    border-radius: 19px;
  }

  .renew-sales-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .renew-sales-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
  }

  .renew-sales-body {
    padding: 0;
  }

  .circle-extra-grid {
    grid-template-columns: 1fr;
  }

  .album-sales-main {
    padding: 15px 14px 13px;
  }

  .renew-sales-chart {
    height: 150px;
  }

  .renew-sales-body-head {
    align-items: flex-start;
    gap: 8px;
  }

  .renew-yt-head {
    align-items: flex-start;
    gap: 8px;
  }

  .renew-yt-title {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .youtube-card-actions {
    flex: none;
    gap: 5px;
  }

  .youtube-refresh-btn {
    width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .youtube-refresh-btn svg {
    width: 18px;
    height: 18px;
  }

  .renew-yt-link {
    font-size: 10px;
    white-space: nowrap;
  }

  .renew-sales-label {
    line-height: 1.35;
  }

  .renew-period-panel {
    display: block;
    padding: 15px;
    border-radius: 17px;
  }

  .renew-period-info {
    margin-bottom: 12px;
  }

  .renew-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .renew-pagination button {
    min-width: 0;
    min-height: 46px;
    padding: 9px 8px;
    white-space: nowrap;
  }

  .renew-pagination .renew-rank-refresh {
    grid-column: 1 / -1;
    width: 100%;
  }

  .renew-pagination span {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
  }

  #previousWeekBtn {
    grid-column: 1;
    grid-row: 2;
  }

  #nextWeekBtn {
    grid-column: 2;
    grid-row: 2;
  }

  .renew-all-time-summary {
    gap: 8px;
  }

  .renew-all-time-card {
    padding: 14px 12px;
  }

  .renew-all-time-card strong {
    font-size: 21px;
  }

  .renew-segmented {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .renew-segmented button {
    padding: 9px 4px;
  }

  .renew-summary-grid {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .renew-summary-card {
    min-width: 148px;
    scroll-snap-align: start;
  }

  .renew-chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .renew-chart-wrap {
    height: 240px;
    padding: 8px 5px 2px;
  }

  .renew-chart-foot {
    display: block;
  }

  .renew-chart-foot span {
    display: block;
    margin-bottom: 3px;
  }

  .renew-back-link {
    width: 100%;
  }

  .circle-album-snapshot-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
