/* FONT BASE */
@font-face {
  font-family: 'cabinmedium';
  src: url(../fonts/cabin-medium-webfont.woff2) format("woff2");
}
@font-face {
  font-family: 'cabinregular';
  src: url(../fonts/cabin-regular-webfont.woff2) format("woff2");
}

/* SKIN BASE */
#wprs_chart.theme4 .skin-4 {
  font-family: 'cabinregular';
  background-color: #ffffff;
  line-height: 1.2;
}
#wprs_chart.theme4 .skin-4.item-row {
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin-bottom: 0;
  border-bottom: 1px solid #ddd;
  background-color: #ffffff;
  height: 78px !important;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/* NUMERO POSIZIONE */
#wprs_chart.theme4 .chart-position-wrap {
  margin-top: -3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  margin-right: 10px;
  margin-left: 0px;
}
#wprs_chart.theme4 .chart-number span {
  color: #000;
  font-size: 28px;
  font-family: 'cabinmedium';
}

/* FRECCE */
#wprs_chart.theme4 .chart-pos {
  margin-top: 4px !important;
  font-size: 14px;
}
#wprs_chart.theme4 .chart-pos img {
  width: 14px;
  height: 14px;
}

/* COVER rimossa */
#wprs_chart.theme4 .cover-img {
  display: none !important;
}

/* INFO */
#wprs_chart.theme4 .artist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex-grow: 1;
  gap: 3px;
  height: 100%;
  min-height: 60px;
}
#wprs_chart.theme4 .track-name,
#wprs_chart.theme4 .artist-name {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  margin: 0;
}
#wprs_chart.theme4 .track-name {
  margin-top: 3px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}
#wprs_chart.theme4 .artist-name {
  font-size: 13px;
  color: #444;
  font-style: italic;
  text-transform: uppercase;
}

/* NASCONDI album name */
#wprs_chart.theme4 .album-name {
  display: none !important;
}

/* PIATTAFORME - solo YouTube visibile */
#wprs_chart.theme4 .platfom-icons > a[href*="apple"],
#wprs_chart.theme4 .platfom-icons > a[href*="amazon"] {
  display: none !important;
}
#wprs_chart.theme4 .platfom-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-left: auto;
  padding-right: 15px;
}
#wprs_chart.theme4 .platfom-icons > a {
  width: 34px;
  height: 34px;
  opacity: 1;
}
#wprs_chart.theme4 .platfom-icons > a img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none !important;
}

/* MOBILE */
@media(max-width: 768px) {
  #wprs_chart.theme4 .skin-4.item-row {
    flex-direction: row;
    align-items: center;
    padding-left: 4px !important;
  }
  #wprs_chart.theme4 .chart-position-wrap {
    width: 35px;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  #wprs_chart.theme4 .chart-number span {
    font-size: 24px;
  }
  #wprs_chart.theme4 .track-name {
    font-size: 16px;
  }
  #wprs_chart.theme4 .artist-name {
    font-size: 12px;
  }
  #wprs_chart.theme4 .platfom-icons > a {
    width: 30px !important;
    height: 30px !important;
  }
}

/* iPhone 16 range specifico */
@media(min-width: 390px) and (max-width: 460px) {
  #wprs_chart.theme4 .platfom-icons {
    flex-direction: column !important;
    align-items: flex-end;
    gap: 2px !important;
  }
}

/* STILE ARTISTI */
#wprs_chart.theme4 .artist-name,
#wprs_chart.theme4 .artist-name a {
  color: #043b96;
  text-decoration: none;
}
#wprs_chart.theme4 .artist-name a:hover {
  color: #171717;
}

/* SFONDO SOLO POSIZIONE 1 IN ROSA */
#wprs_chart.theme4 .item-row:has(.chart-number span[title="This weeks Rank: 1"]) {
  background-color: #fde5e5 !important;
}

/* SFONDO PER NUOVI INGRESSI */
#wprs_chart.theme4 .item-row img[src*="new-circle.png"] {
  background-color: #e6f2ff;
  border-radius: 4px;
  padding: 2px;
}

/* SFONDO AZZURRINO PER LE POSIZIONI NEW (solo se presente l'icona new-circle.png) */
#wprs_chart.theme4 .item-row:has(.chart-pos img[src*="new-circle.png"]) {
  background-color: #e6f2ff !important;
}