.chart_wrap {
    padding: 0 1rem;
    padding-top: 10rem;
}
.sub_title {
    width: 100%;
    max-width: 55rem;
    margin: 0 auto;
    padding-bottom: 0.9rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.sub_title h2 {
    color: var(--color-gray01);
    font-family: var(--font-Pretendard);
    font-size: var(--font-size-40);
    font-weight: var(--font-weight-500);
}
.sub_title p {
    font-family: var(--font-Gmarket);
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-600);
    opacity: 0.3;
    letter-spacing: 0.789px;
    line-height: 1.2;
}

.chart {
    width: 100%;
    max-width: 55rem;
    margin: 0 auto;
}

.chart_section {
    margin-bottom: 1.6rem;
    overflow: hidden;
}
.chart_section:last-child {
    margin-bottom: 10rem;
}

.chart_header {
    background: url("../images/chart/bg_chart_list.png") no-repeat;
    background-size: cover;
    background-position: center;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.chart_header_content {
    color: white;
}

.chart_date {
    font-size: var(--font-size-17);
    font-weight: var(--font-weight-700);
    font-family: var(--font-Gmarket);
    opacity: 0.8;
    letter-spacing: 1px;
}

.chart_title {
    font-size: var(--font-size-40);
    font-weight: var(--font-weight-700);
    font-family: var(--font-Gmarket);

    margin: 0.8rem 0;
}

.chart_subtitle {
    font-size: var(--font-size-21);
    font-weight: var(--font-weight-400);
    font-family: var(--font-Gmarket);
    opacity: 0.8;
}

/* 테이블 컨테이너 */
.chart_table_container {
    background-color: #151515;
    padding-bottom: 1.95rem;
}

/* 테이블 스타일 */
.chart_table {
    width: 100%;
    table-layout: fixed;
}

.chart_table thead th {
    text-align: left;
    font-size: var(--font-size-24);
    font-weight: var(--font-weight-500);
    font-family: var(--font-Pretendard);
    padding: 1.75rem 0 0.8rem 0;
}

.chart_table thead th:first-child {
    padding-left: 4.1rem;
    width: 80px;
}

.chart_table thead th:last-child {
    text-align: right;
    padding-right: 3.4rem;
}

.chart_table tbody td {
    padding: 0.55rem 0 0.5rem 0;
    font-size: var(--font-size-24);
    font-weight: var(--font-weight-300);
    font-family: var(--font-Pretendard);
    color: #e5195c;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart_table tbody td:first-child {
    padding-left: 4.1rem;
}

.chart_table tbody td:last-child {
    text-align: right;
    padding-right: 3.4rem;
}

@media (max-width: 1140px) {
    .chart_table thead th:first-child {
        padding-left: 7.193vw;
        width: 7.018vw;
    }

    .chart_table thead th:last-child {
        padding-right: 5.9649vw;
    }

    .chart_table tbody td:first-child {
        padding-left: 7.193vw;
        width: 7.018vw;
    }

    .chart_table tbody td:last-child {
        padding-right: 5.9649vw;
    }
    .chart_table tbody td {
        padding: 10px 4px;
    }
    .chart_wrap {
        padding-top: 18.1818vw;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .chart_header {
        padding: 2rem 1rem;
    }

    .chart_title {
        font-size: var(--font-size-28);
        margin: 0.6rem 0;
    }

    .chart_date {
        font-size: var(--font-size-12);
    }

    .chart_subtitle {
        font-size: var(--font-size-16);
    }

    .chart_table thead th,
    .chart_table tbody td {
        font-size: var(--font-size-18);
    }

    .rank {
        font-size: var(--font-size-18);
    }

    .sub_title {
        gap: 0.25rem;
    }
    .sub_title h2 {
        font-size: var(--font-size-30);
    }
    .sub_title p {
        font-size: var(--font-size-14);
        line-height: normal;
    }
}

@media (max-width: 480px) {
    .chart_wrap {
        padding-top: 24vw;
    }
    .chart_title {
        font-size: var(--font-size-22);
        margin: 0.5rem 0;
    }

    .chart_date {
        font-size: var(--font-size-10);
    }

    .chart_subtitle {
        font-size: var(--font-size-12);
    }
    .chart_table tbody td {
        padding: 9px 1px;
    }
    .chart_table thead th,
    .chart_table tbody td {
        font-size: var(--font-size-12);
    }

    .rank {
        font-size: var(--font-size-12);
    }

    .chart_table thead th:first-child,
    .chart_table tbody td:first-child {
        width: 30px;
    }

    .sub_title {
        gap: 0.25rem;
    }
    .sub_title h2 {
        font-size: var(--font-size-24);
    }
    .sub_title p {
        font-size: var(--font-size-12);
    }
}
