/* ======================
   ALBUM PAGE STYLES - OPTIMIZED CENTERING
   ====================== */

/* MAIN STRUCTURE */
main.album-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px; /* Reduced from 30px */
    box-sizing: border-box;
}

/* ALBUM CONTENT CONTAINER */
.album-info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Reduced from 40px */
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px; /* Reduced from 15px */
}

/* ALBUM COVER */
.album-cover {
    width: 300px; /* Reduced from 320px */
    min-width: 300px; /* Reduced from 320px */
    margin: 0;
}

.album-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

/* ALBUM DETAILS */
.album-details {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    padding-top: 0; /* Removed padding */
}

/* PLAYER CONTROLS - Targeting the specific class from your CSS */
.player-controls-section {
    text-align: center;
    margin: 15px auto; /* Reduced from 30px 0 */
    padding: 15px; /* Reduced from 20px */
    background-color: white;
    border-radius: 8px;
    max-width: 800px; /* Added constraint */
}

.play-all-button {
    padding: 10px 20px; /* Reduced from 12px 25px */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em; /* Reduced from 1.1em */
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 8px; /* Reduced from 10px */
}

.play-all-button:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.play-all-button.pause {
    background-color: #555;
}

.play-all-button.pause:hover {
    background-color: #333;
}

.now-playing {
    margin-top: 10px; /* Reduced from 15px */
    color: #333;
    min-height: 20px; /* Reduced from 24px */
    font-style: italic;
    font-size: 0.9em; /* Added smaller font */
}

/* Progress bar styling */
.progress-container {
    width: 100%;
    height: 4px; /* Reduced from 5px */
    background-color: #f0f0f0;
    margin: 8px 0; /* Reduced from 10px */
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

/* TRACK LIST SECTION - MODIFIED */
.track-list-section {
    max-width: 800px;
    margin: 15px auto 0; /* Reduced from 20px */
    padding: 0 20px;
}

/* Track Listing subtitle */
.track-list-section h2 {
    margin-bottom: 3px; /* Reduced from 5px */
}

.track-list-subtitle {
    display: block;
    font-size: 0.75em; /* Reduced from 0.8em */
    color: #777;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 12px; /* Reduced from 15px */
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.track-item:last-child {
    border-bottom: none;
}

.track-link {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Reduced from 12px */
    text-decoration: none;
    color: #333;
}

.track-link:hover {
    background-color: #f9f9f9;
}

.track-number {
    width: 40px;
    font-weight: bold;
    color: #777;
}

.track-title {
    flex-grow: 1;
    font-size: 1em; /* Reduced from 1.1em */
}

.track-duration {
    color: #777;
}

/* Highlight currently playing track */
.track-item.playing {
    background-color: #f0f8f0;
    border-left: 3px solid #4CAF50; /* Reduced from 4px */
}

.track-item.playing .track-title {
    font-weight: bold;
    color: #2e7d32;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1100px) {
    .album-info-section {
        gap: 25px; /* Reduced from 30px */
    }
}

@media (max-width: 900px) {
    .album-cover {
        width: 100%;
        max-width: 300px; /* Reduced from 350px */
        min-width: auto;
        margin: 0 auto;
    }
    
    .album-details {
        text-align: center;
    }
    
    .player-controls-section {
        margin: 12px auto; /* Reduced on tablet */
        padding: 12px; /* Reduced on tablet */
    }
}

@media (max-width: 600px) {
    main.album-main {
        padding: 15px 15px; /* Reduced from 20px */
    }
    
    .album-info-section {
        padding: 5px 15px; /* Reduced on mobile */
        gap: 20px; /* Reduced on mobile */
    }
    
    .track-link {
        flex-wrap: wrap;
        padding: 8px 15px; /* Reduced from 10px */
    }
    
    .track-duration {
        width: 100%;
        padding-left: 40px;
        margin-top: 3px; /* Reduced from 5px */
    }
    
    .player-controls-section {
        margin: 10px auto; /* Reduced on mobile */
        padding: 10px; /* Reduced on mobile */
    }
    
    .play-all-button {
        padding: 8px 16px; /* Reduced on mobile */
        font-size: 0.9em; /* Reduced on mobile */
        margin: 0 5px; /* Reduced on mobile */
    }
    
    .now-playing {
        font-size: 0.8em; /* Reduced on mobile */
        margin-top: 8px; /* Reduced on mobile */
    }
    
    .track-list-section {
        margin: 10px auto 0; /* Reduced on mobile */
        padding: 0 15px; /* Reduced on mobile */
    }
    
    .track-list-subtitle {
        margin-bottom: 10px; /* Reduced on mobile */
    }
}