@charset "utf-8";

/* 유튜브 구독자 게시판 스타일 (디자인그대로리스트스킨 기준) */
.youtube-subscriber-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 헤더 영역 */
.board-header { margin-bottom: 40px; }
.board-title-section { text-align: center; margin-bottom: 30px; }
.board-title { font-size: 48px; font-weight: 700; margin: 0 0 10px 0; color: #000; }
.board-title .main-title { font-weight: 700; }
.board-title .sub-title { font-weight: 300; color: #999; }
.board-title sup { font-size: 20px; color: #db007c; margin-left: 5px; }
.board-description { font-size: 14px; color: #666; margin: 10px 0 0 0; }

/* 컨트롤 영역 */
.board-controls { display: flex; justify-content: center; margin-bottom: 20px; }
.control-group { display: flex; gap: 30px; }
.control-item { display: flex; flex-direction: column; align-items: center; }
.control-label { font-size: 11px; color: #999; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.control-select { padding: 8px 15px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 14px; color: #333; cursor: pointer; min-width: 150px; transition: all 0.3s; }
.control-select:hover { border-color: #db007c; }
.control-select:focus { outline: none; border-color: #db007c; box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1); }

/* 버튼 그룹 */
.btns_gr_wrap { margin-bottom: 20px; }
.btns_gr { display: flex; gap: 10px; justify-content: flex-end; }
.fl_btns { padding: 10px 20px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #333; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 5px; transition: all 0.3s; }
.fl_btns:hover { background: #f8f9fa; }
.fl_btns.main_color_bg { background: #db007c; color: #fff; border-color: #db007c; }
.fl_btns.main_color_bg:hover { background: #c9006e; }
.fl_btns img { width: 16px; height: 16px; }

/* 리스트 컨테이너 */
.subscriber-list-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}
.list-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px 100px;
    gap: 20px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600; font-size: 14px; color: #495057;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.item-content {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px 100px;
    gap: 20px;
    padding: 20px 30px;
    align-items: center;
}
.list-item { border-bottom: 1px solid #e9ecef; transition: all 0.3s; }
.list-item:hover { background: #f8f9fa; }
.list-item.expanded { background: #db007c; color: #fff; }
.list-item.expanded .item-content { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

/* 컬럼별 스타일 */
.col-rank { text-align: center; }
.rank-number { font-size: 24px; font-weight: 700; }
.col-artist { display: flex; align-items: center; }
.artist-info { display: flex; align-items: center; gap: 15px; }
.artist-thumbnail { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.artist-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.no-thumbnail { width: 100%; height: 100%; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #999; font-weight: 600; }
.artist-name a { font-size: 16px; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s; }
.artist-name a:hover { color: #db007c; }
.list-item.expanded .artist-name a, .list-item.expanded .rank-number { color: #fff; }

.col-growth { text-align: center; }
.growth-value { font-size: 18px; font-weight: 700; }
.growth-value.positive { color: #db007c; }
.growth-value.negative { color: #5f27cd; }
.list-item.expanded .growth-value { color: #fff; }

.col-total { text-align: center; }
.total-value { font-size: 16px; font-weight: 600; color: #495057; }
.list-item.expanded .total-value { color: #fff; }

.col-actions { display: flex; gap: 10px; justify-content: center; }
.btn-chart { width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; color: #495057; }
.btn-chart:hover { border-color: #db007c; background: #db007c; color: #fff; }
.list-item.expanded .btn-chart { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.list-item.expanded .btn-chart:hover { background: rgba(255, 255, 255, 0.3); }

/* 차트 컨테이너 */
.chart-container { padding: 30px; background: #db007c; }
.chart-wrapper { position: relative; }
.xy-chart-wrapper { height: 300px; margin-bottom: 20px; }
.chart-info { display: flex; justify-content: center; align-items: center; gap: 30px; }
.chart-growth-badge { 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 50%; 
    width: 120px; 
    height: 120px; 
    min-width: 120px;
    min-height: 120px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
    flex-shrink: 0;
}
.chart-growth-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
.chart-growth-badge.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.badge-value { font-size: 24px; font-weight: 700; margin-bottom: 5px; }
.badge-label { font-size: 12px; opacity: 0.8; }

.no-data { padding: 60px 20px; text-align: center; color: #999; }
.pagination-area { margin-top: 40px; display: flex; justify-content: center; }

@media (max-width: 768px) {
    .youtube-subscriber-board { padding: 0px; }
    .list-header, .item-content {
        grid-template-columns: 35px 1fr 55px 75px;
        padding: 15px 8px;
        gap: 10px;
    }
    .list-header .col-total, .item-content .col-total { display: none; }
    .artist-name a { font-size: 14px; }
    

.col-actions { 
        display: flex; 
        gap: 5px; 
        justify-content: center; 
    }

    /* 차트 뱃지 모바일 최적화 */
    .chart-info {
        gap: 15px;
    }
    
    .chart-growth-badge {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px;
        min-height: 80px;
        flex: 0 0 80px;
    }
    
    .badge-value {
        font-size: 18px;
    }
    
    .badge-label {
        font-size: 10px;
    }
}