.chartbox-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  padding: 10px;
  align-items: center;
  font-family: sans-serif;
}

.chartbox-left, .chartbox-center, .chartbox-right {
  padding: 6px;
}

.chartbox-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.chartbox-cover-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chartbox-position-box {
  width: 66px;
  height: 66px;
  background-color: #ff9900;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.chartbox-cover-inner {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.chartbox-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.chartbox-center {
  flex: 3 1 300px;
  margin-left: -4px;
}

.chartbox-title {
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 3px;
  color: #222;
}

.chartbox-title a {
  font-size: 21px;
  font-weight: bold;
  color: #0077cc !important;
  text-decoration: none;
}

.chartbox-title a:hover {
  text-decoration: underline;
}

.chartbox-artist {
  font-size: 16px;
  color: #666;
  margin-bottom: 6px;
}

.chartbox-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.chartbox-link, .chartbox-video {
  font-size: 13px;
  color: #0077cc;
}

.chartbox-right {
  flex: 1 1 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chartbox-trend {
  margin-bottom: 6px;
}

.chartbox-weeks-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
}

.chartbox-previous {
  font-size: 13px;
  color: #999;
}

.chartbox-weeks {
  font-size: 12px;
  color: #aaa;
}

.chartbox-weeks.new {
  color: #000000;
}

.chartbox-mobile-weeks {
  display: none;
}

.desktop-only {
  display: flex;
}

.charts-main-block {
  width: 100%;
}
.chartbox-previous {
 font-size: 16px;
  font-weight: bold;
}

/* Mobile */

@media (max-width: 600px) {
  .chartbox-title {
    font-size: 21px;
    font-weight: bold;
    color: #000000;
    margin: 8px 0 4px 15px;
  }

  .chartbox-title * {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
  }

  .chartbox-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px;
  }

  .chartbox-left {
    width: 100%;
    padding: 6px 0;
  }

  .chartbox-cover-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .chartbox-position-box {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }

  .chartbox-cover-inner {
    width: 74px;
    height: 74px;
  }

  .chartbox-center {
    width: 100%;
    padding: 0;
    margin: 0;
    display: block;
    flex: unset !important;
  }

  .chartbox-title {
    font-size: 21px;
    font-weight: bold;
    color: #000000;
    margin: 8px 0 4px 15px;
  }

  .chartbox-title a {
    font-size: 21px;
    font-weight: bold;
    color: #0077cc !important;
    text-decoration: none;
  }

  .chartbox-title a:hover {
    text-decoration: underline;
  }

  .chartbox-artist {
    font-size: 17px;
    margin: 0 0 10px 15px;
    color: #666;
  }

  .chartbox-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 15px;
    margin-bottom: 0;
  }

  .chartbox-link, .chartbox-video {
    font-size: 14px;
  }

  .chartbox-mobile-weeks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #777;
  }

  .desktop-only {
    display: none !important;
  }

  .chartbox-right {
    display: none;
  }

  .chartbox-video:empty {
    display: none;
  }
  .chartbox-previous {
  font-weight: bold;
}
}