
    /* ===== 기간별 베스트 탭 + 카드 (best-period-section 이식, 도파민 다크 틸 매핑) ===== */
    .best-period-section {
        background: #fcfcfc;
        border: 1px solid #dde3e9;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 18px;
    }
    .bp-tabs {
        display: flex;
        background: #f5f5f5;
        border-bottom: 1px solid #dde3e9;
    }
    .bp-tab {
        flex: 1;
        padding: 12px 8px;
        background: transparent;
        border: none;
        color: #64748b;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        text-align: center;
        cursor: pointer;
        transition: color 0.15s, background 0.15s;
        border-right: 1px solid #dde3e9;
    }
    .bp-tab:last-child { border-right: none; }
    .bp-tab:hover { color: #333333; background: #e7ecf1; }
    .bp-tab.active {
        color: #1ea459;
        background: #fcfcfc;
        position: relative;
    }
    .bp-tab.active::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: -1px;
        height: 2px;
        background: #1ea459;
    }
    .bp-panel { display: none; padding: 14px; }
    .bp-panel.active { display: block; }

    /* 다크 모드: 탭 배경/글자 다크화 (활성탭 흰색 방지) */
    [data-theme="dark"] .bp-tabs {
        background: #0f1419;
        border-bottom-color: #1e293b;
    }
    [data-theme="dark"] .bp-tab {
        color: #94a3b8;
        border-right-color: #1e293b;
    }
    [data-theme="dark"] .bp-tab:hover {
        color: #e2e8f0;
        background: #1e2836;
    }
    [data-theme="dark"] .bp-tab.active {
        color: #14b8a6;
        background: #0a0f14;
    }
    [data-theme="dark"] .bp-tab.active::after {
        background: #14b8a6;
    }

    /* 순위 리스트 (1~10위, 2열 5행) */
    .bp-ranking {
        list-style: none;
        padding: 6px 0 4px 0;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, auto);
        grid-auto-flow: column;
        column-gap: 22px;
        row-gap: 4px;
    }
    .bp-empty {
        padding: 30px 12px;
        text-align: center;
        color: #64748b;
        font-size: 13px;
    }
    .bp-rank-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 4px;
        min-width: 0;
    }
    /* 순번 — 순위 구분 없이 전부 동일한 초록 */
    .bp-rank-num {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        background: #1ea459;
        color: #ffffff;
        font-weight: 700;
        font-size: 12px;
        border-radius: 3px;
    }
    .bp-rank-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        color: #333333;
        text-decoration: none;
    }
    /* 행 전체 hover (다른 목록과 동일) — 글자에만 올려야 발동하던 것 제거 */
    .bp-rank-item:hover { background: rgba(30, 164, 89, 0.06); }
    .bp-rank-item:hover .bp-rank-title { color: #1ea459; }
    .bp-rank-cmt {
        color: #1ea459;
        font-size: 11px;
        font-weight: 700;
        margin-left: 4px;
    }
    .bp-rank-date {
        flex-shrink: 0;
        color: #888888;
        font-size: 11px;
        margin-left: 6px;
    }

    @media (max-width: 768px) {
        .bp-tab { font-size: 12px; padding: 10px 4px; }
        .bp-ranking {
            grid-template-columns: 1fr !important;
            grid-template-rows: repeat(5, auto) !important;
            grid-auto-flow: row !important;
            column-gap: 0 !important;
        }
        .bp-ranking .bp-rank-item:nth-child(n+6) { display: none !important; }
        .bp-rank-title { font-size: 12px; }
    }
    