/* Wrapped Component Styles - Scoped to #main-wrapped */

#main-wrapped .wrapped-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

#main-wrapped .back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(162, 89, 255, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

#main-wrapped .back-button:hover {
    background: rgba(162, 89, 255, 0.3);
    transform: translateX(-2px);
}

#main-wrapped .wrapped-content {
    margin-top: 60px;
}

#main-wrapped .wrapped-section {
    margin-bottom: 30px;
}

#main-wrapped .wrapped-title {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

#main-wrapped .section-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
}

#main-wrapped .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#main-wrapped .stat-card {
    padding: 25px;
    border-radius: 16px;
    color: white;
    text-align: center;
}

#main-wrapped .stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

#main-wrapped .stat-label {
    opacity: 0.9;
    font-size: 1.1em;
}

#main-wrapped .list-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

#main-wrapped .list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

#main-wrapped .list-item:last-child {
    border-bottom: none;
}

#main-wrapped .item-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent);
    margin-right: 20px;
    width: 30px;
}

#main-wrapped .item-info {
    flex: 1;
    min-width: 0;
}

#main-wrapped .item-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#main-wrapped .item-subtitle {
    color: #888;
    margin-top: 5px;
    font-size: 0.95em;
}

#main-wrapped .item-plays {
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 16px;
}

#main-wrapped .footer-info {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 120px;
}

#main-wrapped .update-text {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

#main-wrapped .refresh-button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#main-wrapped .refresh-button:hover {
    background: var(--accentdark);
}

#main-wrapped .refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#main-wrapped .loading-message {
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
}

#main-wrapped .error-message {
    color: #f44;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    #main-wrapped .wrapped-container {
        padding: 15px;
    }
    
    #main-wrapped .wrapped-title {
        font-size: 1.4em;
    }
    
    #main-wrapped .section-title {
        font-size: 1.2em;
    }
    
    #main-wrapped .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #main-wrapped .stat-value {
        font-size: 2em;
    }
    
    #main-wrapped .stat-label {
        font-size: 1em;
    }
    
    #main-wrapped .item-rank {
        font-size: 1.2em;
        margin-right: 12px;
    }
    
    #main-wrapped .item-title {
        font-size: 1em;
    }
    
    #main-wrapped .item-plays {
        font-size: 0.9em;
    }
    
    #main-wrapped .footer-info {
        padding-bottom: 80px;
    }
}
