.page-nav {
    margin-top: 20px;
}

.nav-link {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-section {
    margin-bottom: 60px;
}

.stats-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #333;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card-large {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-card-large .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.2;
}

.stat-card-large .stat-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 600;
}

/* Most Played List */
.most-played-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.most-played-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .most-played-item {
    background: #2a2a2a;
}

.most-played-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.most-played-rank {
    font-size: 2em;
    font-weight: bold;
    color: #999;
    min-width: 60px;
    text-align: center;
}

.most-played-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.most-played-info {
    flex: 1;
}

.most-played-info h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 5px;
}

body.dark-mode .most-played-info h3 {
    color: #e0e0e0;
}

.most-played-info p {
    color: #666;
    font-size: 0.95em;
}

body.dark-mode .most-played-info p {
    color: #b0b0b0;
}

.most-played-plays {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.plays-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
    line-height: 1;
}

.plays-label {
    font-size: 0.9em;
    color: #999;
    margin-top: 5px;
}

.stats-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.milestone-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.milestone-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 8px solid #eee;
    transition: transform 0.3s ease;
}

.milestone-card:hover {
    transform: translateX(10px);
}

.milestone-card.h-index { border-color: #ffd700; }
.milestone-card.dime { border-color: #c0c0c0; }
.milestone-card.nickel { border-color: #cd7f32; }

.milestone-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestone-number {
    font-size: 3em;
    font-weight: 800;
    color: #333;
    margin: 5px 0;
}

.milestone-sub {
    font-size: 0.85em;
    color: #999;
}

/* CSS Chart Styles */
.css-chart {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
    justify-content: center;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-label {
    width: 60px;
    font-weight: bold;
    color: #666;
    text-align: right;
    font-size: 0.9em;
}

.chart-bar-container {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 12px;
    transition: width 1s ease-out;
}

.chart-count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85em;
    font-weight: bold;
    color: #333;
}

body.dark-mode .milestone-card,
body.dark-mode .css-chart {
    background: #2a2a2a;
}

body.dark-mode .milestone-number,
body.dark-mode .chart-count {
    color: #e0e0e0;
}

body.dark-mode .chart-bar-container {
    background: #444;
}

@media (max-width: 992px) {
    .stats-grid-two-cols {
        grid-template-columns: 1fr;
    }
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.insight-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.insight-card h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.insight-number {
    font-size: 3em;
    font-weight: bold;
    color: #4CAF50;
    display: block;
    margin-bottom: 10px;
}

.insight-description {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .stats-section h2 {
        font-size: 1.5em;
    }

    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-card-large {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2em;
    }

    .stat-card-large .stat-number {
        font-size: 1.8em;
    }

    .chart-container {
        padding: 20px;
    }

    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .insight-card {
        padding: 20px;
    }

    .insight-number {
        font-size: 2em;
    }

    .most-played-item {
        flex-wrap: wrap;
        gap: 15px;
    }

    .most-played-rank {
        min-width: 40px;
        font-size: 1.5em;
    }

    .most-played-img {
        width: 60px;
        height: 60px;
    }

    .most-played-plays {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .plays-number {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}
