.charts {
    --border-width: 1px;
}

.charts{ min-height: 300px; padding-bottom: 20px; border: 1px solid var(--thin-border); }

.charts .header { text-align: center; }
.charts .header .title { height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--font-1); background: linear-gradient(180deg, var(--theme-gradient-1) 0%, var(--theme-gradient-4) 100%); color: var(--theme-text-color); font-weight: bold; text-transform: uppercase; margin-bottom: 5px;     position: relative;left: calc(var(--border-width) * -1);top: calc(var(--border-width) * -1);width: calc(100% + (var(--border-width) * 2)); }
.charts .header .description { /*font-family: sans-serif;*/ color: #8b8b8b; font-size: 10px; margin-bottom: 20px; }


.charts.small .list { display: flex; flex-direction: column; gap: 20px; }

.charts.small .entry { display: flex; }

.charts.small .entry .rank { width: 45px; display: flex; justify-content: center; align-items: center; color: #868686; font-size: 25px; min-width: 45px; }
.charts.small .entry .cover { border: 2px solid var(--theme-color); padding: 1px; width: 96px; height: 96px;min-width: 96px; min-height: 96px;max-width: 96px; max-height: 96px;}
.charts.small .entry .info { flex-grow: 1; padding: 0 20px; display: flex;  font-size: 11px; flex-direction: column; justify-content: space-between;}
.charts.small .entry .info .artist {font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.charts.small .entry .info .title {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;}
.charts.small .entry .info .label {}
.charts.small .entry .info .text {display: flex; flex-direction: column; gap: 4px;}
.charts.small .entry .info .links {border-bottom: 1px solid var(--thin-border);display: flex; gap: 10px; padding-bottom: 5px; height: 35px;}
.charts.small .entry .info .links > div {display: flex; gap: 10px; align-items: center;}
.charts.small .entry .info .links > div:not(:last-child) {border-right: 1px solid var(--thin-border); padding-right: 10px;}
.charts.small .entry .info .icon {width: 20px; height: 20px; display: flex; align-items: center; cursor: pointer;}




.charts.big .list { display: flex; flex-direction: column; /*gap: 20px;*/ }

.charts.big {/* margin-top: -40px;*/ }
.charts.big {
    --gap-list: 20px;
    --gap-entry: 20px;
}

.charts.big .entry { display: flex; }
.charts.big .header {position: sticky;top: 70px; z-index: 100;}
.charts.big .header .title {text-transform: initial;}

.charts.big .entry .rank { width: 45px; display: flex; justify-content: center; align-items: center; color: #000; font-size: 25px; min-width: 45px; }
.charts.big .entry .cover { border: 2px solid var(--theme-color); padding: 1px; width: 96px; height: 96px; display: flex; align-items: center;}
.charts.big .entry .cover img { width: 100%; height: 100%;}
.charts.big .entry .info { flex-grow: 1;padding-top: var(--gap-list);display: flex;flex-direction: row;border-bottom: 1px solid var(--thin-border);justify-content: space-between;margin: 0 var(--gap-entry); font-size: 14px;}
.charts.big .entry .info .artist {font-weight: 700; }
.charts.big .entry .info .title {}
.charts.big .entry .info .label {font-size: 11px; color: #888;}
.charts.big .entry .info .text {display: flex; flex-direction: column; gap: 4px; padding-right: 30px;}
.charts.big .entry .info .links {display: flex; gap: 10px; padding-bottom: 5px; height: 35px; min-width: 181px;}
.charts.big .entry .info .links > div {display: flex; gap: 10px; align-items: center;}
.charts.big .entry .info .links > div:not(:last-child) {border-right: 1px solid var(--thin-border); padding-right: 10px;}
.charts.big .entry .info .icon {width: 20px; height: 20px; display: flex; align-items: center; cursor: pointer;}

.charts.big .entry > .left {display: flex; border-right: 1px solid var(--thin-border);padding-right: var(--gap-entry); padding-top:var(--gap-list);}

.charts.big .entry .trend {display: flex; border-bottom: 1px solid var(--thin-border); margin-left: var(--gap-entry);font-size: 20px; }
.charts.big .entry .trend .t-tw {font-size: 16px;}
.charts.big .entry .trend > div {width: 50px; display: flex; justify-content: center; align-items: center;}
.charts.big .entry .trend > div:nth-child(2) {color: #000; }
.charts.big .entry .trend > div:nth-child(3) {color: #868686; }
.charts.big .entry .trend > div:nth-child(4) {color: #bbbbbb; }

.charts.big .entry .score {display: flex; font-size: 14px; }
.charts.big .entry .score > div {width: 70px; display: flex; justify-content: center; align-items: center; border-left: 1px solid var(--thin-border); padding-top: var(--gap-list);}
.charts.big .entry .score > div.s-date {width: 110px;}
.charts.big .entry .score > div > div {border-bottom: 1px solid var(--thin-border); display: flex; align-items: center; justify-content: center; height: 100%; width: calc(100% - var(--gap-entry));}

.charts.big .legend .entry .rank {font-size: initial; color: initial;}
.charts.big .legend .entry .cover {opacity: 0; height: initial;}
.charts.big .legend .entry .trend,
.charts.big .legend .entry .info,
.charts.big .legend .entry .score > div,
.charts.big .legend .entry > .left {border-color: transparent; padding-top: 0; font-size: 16px; color: #000;}
.charts.big .legend .entry .trend > div { color: #000;}

.charts.big .legend {border-bottom: 1px solid var(--thin-border);padding-bottom: 12px;margin-bottom: 8px;margin-top: -6px;position: sticky;top: 149px;padding-top: 12px;background: #fff; z-index: 100;}





.charts .white {width: calc(100% + var(--border-width) * 4); height: 40px; background-color: #fff; position: relative; top: calc(var(--border-width) * -1);left: calc(var(--border-width) * -1);}

.year-selection {position: relative; z-index: 500; width: 100%; border: 1px solid #ccc; display: flex; justify-content: center; padding: 10px 50px; gap: 7px 20px; flex-wrap: wrap;}
.year-selection a {text-decoration: none;}
.year-selection a:hover {text-decoration: underline;}
.year-selection a.active {font-weight: bold;}



/* MOBILE */

.charts.mobile {display: none;}
.charts.big.mobile .list {gap: 20px;}

.charts.big.mobile .list { display: flex; flex-direction: column; gap: 20px; }

.charts.big.mobile .entry { display: block;  }
.charts.big.mobile .entry:not(:last-child) { border-bottom: 1px solid #ccc; }
.charts.big.mobile .entry:first-child { padding-top: 15px;}

.charts.big.mobile .entry .rank { width: 45px; display: flex; justify-content: center; align-items: center; font-size: 18px; min-width: 45px; }
.charts.big.mobile .entry .cover { border: 2px solid var(--theme-color); padding: 1px; width: 96px;}
.charts.big.mobile .entry .info { flex-grow: 1; padding: 0 20px; display: flex;  font-size: 11px; flex-direction: column; justify-content: space-between;    margin: 0; border:0;}
.charts.big.mobile .entry .info .artist {font-weight: 700; }
.charts.big.mobile .entry .info .title {}
.charts.big.mobile .entry .info .label {}
.charts.big.mobile .entry .info .text {display: flex; flex-direction: column; gap: 4px; padding-right: 0;}
.charts.big.mobile .entry .info .links {display: flex; gap: 10px; padding: 5px 0; height: 35px; min-width: initial;}
.charts.big.mobile .entry .info .links > div {display: flex; gap: 10px; align-items: center;}
.charts.big.mobile .entry .info .links > div:not(:last-child) {border-right: 1px solid var(--thin-border); padding-right: 10px;}
.charts.big.mobile .entry .info .icon {width: 20px; height: 20px; display: flex; align-items: center; cursor: pointer;}
.charts.big.mobile .entry .flex {display: flex; width: 100%;}

.charts.big.mobile .entry .stats {width: 100%; display: flex; padding: 20px 10px; gap: 10px; flex-wrap: wrap;}
.charts.big.mobile .entry .stats .item {flex-grow: 1; text-align: center; border: 1px solid #efefef; border-top: 0; border-bottom: 0; padding: 4px 10px; min-width: 50px; font-size: 12px;}
.charts.big.mobile .entry .stats .item .name {color: #ccc; margin-bottom: 5px; font-size: 11px;}
.charts.big.mobile .entry .stats .item .value {font-size: 16px;}
.charts.big.mobile .entry .stats .item .value img {margin: 0 auto;}


.charts.big.mobile .legend .entry > .left {height: 20px;}