/* 1. The Wrapper (Router Container) - Base styles for all breakpoints */
.album-player-spotify-container {
    display: grid;
    grid-template-rows: auto auto auto 1fr 88px;
    grid-template-columns: 100%;
    height: calc(100vh - 66px);
    width: 100%;
    overflow: hidden;
}

.player-bar {
    background: linear-gradient(to top, #181818 0%, #282828 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Extra large breakpoint styles (>=1200px) */
@media (width >= 1200px) {
    /* AdminSongManagement container */
    #grid-container {
        width: 100%;
        height: calc(100vh - 10rem);
    }

    /* SongPlayer - Container adjustments for extra large screens */
    .song-player-container {
        grid-template-rows: 1fr 88px;
    }

    .song-player-container .song-header {
        padding: 24px;
    }

    .song-player-container .player-bar {
        padding: 16px 24px;
        gap: 8px;
    }

    /* AlbumPlayer - Container adjustments for extra large screens */
    .album-player-spotify-container {
        grid-template-rows: auto auto auto 1fr 88px;
    }

    .album-player-spotify-container .album-image-title-row {
        padding: 0px 24px;
    }

    .album-player-spotify-container .action-buttons-row {
        padding: 8px 24px;
    }

    .album-player-spotify-container .status-info-row {
        padding: 8px 24px;
    }

    .album-player-spotify-container .player-bar {
        padding: 16px 24px;
        gap: 8px;
    }

    /* AlbumPlayer - Player controls layout for extra large screens */
    .album-player-spotify-container .controls-wrapper {
        gap: 8px;
        margin-bottom: 8px;
        max-width: 600px;
    }

    .album-player-spotify-container .time-spacer {
        min-width: 40px;
    }

    .album-player-spotify-container .player-controls-row {
        gap: 16px;
    }

    .album-player-spotify-container .player-controls {
        gap: 16px;
    }

    .album-player-spotify-container .volume-controls {
        gap: 8px;
    }

    .album-player-spotify-container .control-button {
        width: 32px;
        height: 32px;
    }

    .album-player-spotify-container .control-icon {
        width: 16px;
        height: 16px;
    }

    .album-player-spotify-container .play-button-small {
        width: 32px;
        height: 32px;
    }

    .album-player-spotify-container .play-icon-small {
        width: 16px;
        height: 16px;
    }

    .album-player-spotify-container .progress-container {
        gap: 8px;
        max-width: 600px;
    }

    .album-player-spotify-container .time-display {
        min-width: 40px;
        font-size: 11px;
    }

    .album-player-spotify-container .volume-bar-container {
        width: 100px;
    }

    .album-art {
        width: 140px;
        object-fit: cover;
        border-radius: 8px;
    }

    .title-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .song-title {
        font-size: 80px;
        font-weight: 900;
        line-height: 1;
        margin: 0 20px 0 20px;
        padding: 0;
    }

    /* Song Title */
    .card-song-title {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Stream Count on Card */
    .card-stream-count {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #b3b3b3;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .stream-icon {
        width: 12px;
        height: 12px;
        fill: currentColor;
    }

    
    .track-list {
        width: 100%;
        border-collapse: collapse;
        color: #b3b3b3;
    }

        .track-list thead {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .track-list th {
            font-size: 12px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 8px 16px;
            text-align: left;
        }

            .track-list th.track-number {
                width: 50px;
                text-align: center;
            }

            .track-list th.track-image {
                width: 60px;
                padding-left: 0;
                padding-right: 0;
            }

            .track-list th.track-duration {
                width: 80px;
                text-align: right;
            }

            .track-list th.track-streams {
                width: 80px;
                text-align: right;
            }

            .track-list th.track-actions {
                width: 50px;
            }

    .track-row {
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .track-row:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .track-row.current-track {
            background-color: rgba(29, 185, 84, 0.2);
        }

        .track-row td {
            padding: 12px 16px;
        }

            .track-row td.track-number {
                text-align: center;
                position: relative;
            }

    .track-index {
        display: inline;
    }

    .track-play-btn {
        display: none;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0;
        width: 16px;
        height: 16px;
    }

        .track-play-btn svg {
            width: 16px;
            height: 16px;
        }

    .track-row:hover .track-index {
        display: none;
    }

    .track-row:hover .track-play-btn {
        display: inline;
    }

    .track-row.current-track .track-index {
        display: none;
    }

    .album-track-info {
        color: #b3b3b3;
        font-size: 14px;
        font-weight: 500;
    }

    .stream-count-info {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #b3b3b3;
        font-size: 14px;
        font-weight: 500;
    }

    .stream-icon {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .track-title-cell {
        text-align: left;
    }

    .track-title-content {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .track-name {
        color: #fff;
        font-size: 16px;
        font-weight: 400;
    }

        .track-name.playing {
            color: #1db954;
        }

    .track-preview-badge {
        font-size: 10px;
        font-weight: 600;
        color: #ffa500;
        background-color: rgba(255, 165, 0, 0.15);
        padding: 2px 6px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-left: 8px;
        white-space: nowrap;
    }

    .track-duration {
        text-align: right;
        font-size: 14px;
    }

    .track-streams {
        text-align: right;
        font-size: 14px;        
    }

    /* Playing Indicator */
    .playing-indicator {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 2px;
        height: 16px;
    }

        .playing-indicator span {
            width: 3px;
            background-color: #1db954;
            border-radius: 1px;
            animation: soundBars 0.5s ease infinite alternate;
        }

            .playing-indicator span:nth-child(1) {
                height: 60%;
                animation-delay: 0s;
            }

            .playing-indicator span:nth-child(2) {
                height: 100%;
                animation-delay: 0.1s;
            }

            .playing-indicator span:nth-child(3) {
                height: 40%;
                animation-delay: 0.2s;
            }

    @keyframes soundBars {
        0% {
            height: 20%;
        }

        100% {
            height: 100%;
        }
    }

    .track-image {
        padding: 8px !important;
    }

    .track-thumbnail {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 2px;
    }

    .track-thumbnail-placeholder {
        width: 40px;
        height: 40px;
        background: #282828;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 2px;
    }

        .track-thumbnail-placeholder svg {
            width: 24px;
            height: 24px;
            fill: #b3b3b3;
        }

    /* Featured Music Carousel - XL breakpoint: show ~5 cards */
    .featured-music-carousel {
        gap: 24px;
        padding-right: 24px;
    }

    .featured-music-carousel .music-card {
        width: 220px; /* Fixed width for XL screens */
        min-width: 220px;
    }

    .home-container {
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Hero Section - XL Breakpoint */
    .hero-section {
        gap: 3rem;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 500px;
        margin-bottom: 2rem;
    }

    .hero-cta {
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .cta-large {
        padding: 16px 48px;
        font-size: 1.125rem;
    }

    .hero-animation {
        width: 300px;
        height: 300px;
    }

    /* Features Section - XL Breakpoint */
    .features-section {
        padding: 4rem 0;
    }

    .features-section .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .features-grid {
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card p {
        font-size: 1rem;
        margin: 0;
    }

    /* User Playlists Section - XL Breakpoint */
    .user-playlists-section {
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .user-playlists-section .section-title {
        font-size: 2rem;
    }

    /* Featured Music Section - XL Breakpoint */
    .featured-music-section {
        padding: 2rem 0;
    }

    .featured-music-section .section-title {
        font-size: 2rem;
    }

    .featured-music-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Subscription CTA Section - XL Breakpoint */
    .subscription-cta-section {
        padding: 4rem;
        margin: 3rem 0;
    }

    .subscription-cta-content h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .subscription-price-highlight {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .subscription-price-highlight .price {
        font-size: 3rem;
    }

    .subscription-benefits {
        margin-bottom: 2rem;
    }

    .subscription-benefits li {
        font-size: 1.125rem;
        gap: 12px;
        margin-bottom: 1rem;
    }
}

/* Playlists Page Spacing */
.playlists-page-container {
    padding: 20px;
}

.playlists-page-header {
    margin-bottom: 20px;
}

.playlists-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.playlists-page-card {
    height: 100%;
    width: 300px !important;
    border-radius: 16px !important;
}

.playlists-page-info {
    margin-bottom: 15px;
}

.playlists-page-date {
    font-size: 0.85em;
}

.playlists-page-card-actions {
    gap: 10px;
}

.playlists-page-songs-section {
    margin-top: 30px;
    padding: 20px;
}

.playlists-page-songs-header {
    margin-bottom: 20px;
}

    .playlists-page-songs-header > div {
        gap: 10px;
    }

.playlists-page-songs-list {
    gap: 10px;
}

.playlists-page-song-item {
    padding: 10px;
}

.playlists-page-song-info {
    gap: 5px;
}

.playlists-page-song-genre {
    font-size: 0.85em;
}

.playlists-page-add-song-list {
    max-height: 400px;
    gap: 10px;
}

.playlists-page-add-song-item {
    padding: 10px;
}

.playlists-page-dialog-content {
    padding: 20px 0;
}
