.discovery-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.discovery-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mc-green), var(--mc-dark-green));
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
}

.discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.discovery-col {
    padding: 1rem 1.2rem;
}

.discovery-col:first-child {
    border-right: 1px solid #f0f0f0;
}

.discovery-col-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mc-dark-green);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.disc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.disc-item:hover {
    background: rgba(76,175,80,0.05);
}

.disc-item + .disc-item {
    border-top: 1px solid #f5f5f5;
}

.disc-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    background: #e9ecef;
    color: var(--mc-gray);
}

.disc-rank.top1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.disc-rank.top2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.disc-rank.top3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
}

.disc-logo {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    image-rendering: pixelated;
    border: 1px solid #eee;
}

.disc-logo-ph {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #aaa;
    font-size: 0.8rem;
}

.disc-info {
    flex: 1;
    min-width: 0;
}

.disc-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-sub {
    font-size: 0.7rem;
    color: #999;
    font-family: monospace;
}

.disc-badge {
    font-size: 0.7rem;
    color: var(--mc-green);
    background: rgba(76,175,80,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.disc-empty {
    text-align: center;
    padding: 2rem 1.2rem 1.8rem;
    color: #999;
    font-size: 0.85rem;
    background: linear-gradient(145deg, #fafbfc, #f0f2f5);
    border-radius: 12px;
    margin: 0.5rem 0;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.disc-empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mc-green), #81C784, var(--mc-green));
    opacity: 0.5;
}

.disc-empty .empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-empty .empty-icon i {
    font-size: 1.5rem;
    color: var(--mc-green);
    margin: 0;
}

.disc-empty .empty-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.4rem;
}

.disc-empty .empty-hint {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.6;
}

.disc-empty .empty-hint a {
    color: var(--mc-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--mc-green);
}

.disc-empty .empty-hint a:hover {
    color: var(--mc-dark-green);
    border-bottom-color: var(--mc-dark-green);
}

.leaderboard-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.leaderboard-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--mc-green), var(--mc-dark-green));
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.leaderboard-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
}

.leaderboard-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mc-gray);
    border: none;
    background: transparent;
    transition: all 0.2s;
    position: relative;
}

.leaderboard-tab:hover {
    color: var(--mc-dark-green);
    background: rgba(76,175,80,0.05);
}

.leaderboard-tab.active {
    color: var(--mc-dark-green);
    font-weight: 600;
}

.leaderboard-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--mc-green);
    border-radius: 3px 3px 0 0;
}

.leaderboard-content {
    padding: 1rem 1.5rem;
}

.leaderboard-panel {
    display: none;
}

.leaderboard-panel.active {
    display: block;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    gap: 0.8rem;
    cursor: pointer;
}

.rank-item:hover {
    background: rgba(76,175,80,0.06);
}

.rank-item + .rank-item {
    border-top: 1px solid #f0f0f0;
}

.rank-motd {
    font-size: 0.72rem;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    background: #e9ecef;
    color: var(--mc-gray);
}

.rank-number.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 6px rgba(255,215,0,0.4);
}

.rank-number.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
    box-shadow: 0 2px 6px rgba(192,192,192,0.4);
}

.rank-number.bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
    box-shadow: 0 2px 6px rgba(205,127,50,0.4);
}

.rank-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    image-rendering: pixelated;
    border: 1px solid #eee;
}

.rank-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #aaa;
    font-size: 0.9rem;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-ip {
    font-size: 0.75rem;
    color: #999;
    font-family: monospace;
}

.rank-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--mc-dark-green);
    white-space: nowrap;
    text-align: right;
    min-width: 60px;
}

.rank-value small {
    font-weight: 400;
    font-size: 0.7rem;
    color: #999;
}

.rank-stars {
    color: #FFD700;
    font-size: 0.75rem;
    letter-spacing: -1px;
}

.leaderboard-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.9rem;
}

.pv-chart-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pv-chart-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mc-green), var(--mc-dark-green));
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
}

.pv-chart-container {
    padding: 1.5rem;
    position: relative;
    height: 300px;
}

@media (max-width: 768px) {
    .pv-chart-container {
        padding: 1rem;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .discovery-grid {
        grid-template-columns: 1fr;
    }

    .discovery-col:first-child {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .leaderboard-content {
        padding: 0.8rem 1rem;
    }

    .leaderboard-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .rank-item {
        gap: 0.5rem;
        padding: 0.6rem 0.3rem;
    }
}
