/* Medium breakpoint styles (<992px) */
@media (max-width: 992px) {
    /* AdminSongManagement container */
    #grid-container {
        width: 100%;
        height: calc(100vh - 8rem);
    }

    /* SongPlayer - Container adjustments for medium screens */
    .song-player-container {
        grid-template-rows: 1fr 85px;
    }

    .song-player-container .song-header {
        padding: 20px;
    }

    .song-player-container .player-bar {
        padding: 12px 20px;
        gap: 6px;
    }

    /* AlbumPlayer - Container adjustments for medium screens */
    .album-player-spotify-container {
        grid-template-rows: auto auto auto 1fr 85px;
    }

    .album-player-spotify-container .album-image-title-row {
        padding: 12px 20px;
    }

    .album-player-spotify-container .action-buttons-row {
        padding: 8px 20px;
    }

    .album-player-spotify-container .status-info-row {
        padding: 8px 20px;
    }

    .album-player-spotify-container .player-bar {
        padding: 12px 20px;
        gap: 6px;
    }

    /* AlbumPlayer - Player controls layout for medium screens */
    .album-player-spotify-container .controls-wrapper {
        gap: 4px;
        margin-bottom: 6px;
        max-width: 100%;
    }

    .album-player-spotify-container .time-spacer {
        display: none;
        min-width: 0;
    }

    .album-player-spotify-container .player-controls-row {
        gap: 8px;
        width: 100%;
    }

    .album-player-spotify-container .player-controls {
        gap: 8px;
    }

    .album-player-spotify-container .volume-controls {
        gap: 6px;
    }

    .album-player-spotify-container .control-button {
        width: 30px;
        height: 30px;
    }

    .album-player-spotify-container .control-icon {
        width: 15px;
        height: 15px;
    }

    .album-player-spotify-container .play-button-small {
        width: 30px;
        height: 30px;
    }

    .album-player-spotify-container .play-icon-small {
        width: 15px;
        height: 15px;
    }

    .album-player-spotify-container .progress-container {
        gap: 6px;
        max-width: 100%;
    }

    .album-player-spotify-container .time-display {
        min-width: 32px;
        font-size: 11px;
    }

    .album-player-spotify-container .volume-bar-container {
        width: 70px;
    }

    .title-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .album-art {
        width: 225px;
        object-fit: cover;
        box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

    .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-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;
    }

    /* 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;
        }

    /* 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;
    }

    /* Featured Music Carousel - MD breakpoint: show ~3.2 cards */
    .featured-music-carousel {
        gap: 20px;
        padding-right: 20px;
    }

    .featured-music-carousel .music-card {
        /* 3.2 cards visible: 100vw / 3.2 ≈ 31.25vw per card */
        width: calc(100vw / 3.2 - 24px);
        min-width: 200px;
    }

    .home-container {
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Hero Section - MD Breakpoint */
    .hero-section {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 400px;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        gap: 0.875rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .cta-large {
        padding: 14px 36px;
        font-size: 1rem;
    }

    .hero-animation {
        width: 220px;
        height: 220px;
    }

    /* Features Section - MD Breakpoint */
    .features-section {
        padding: 2.5rem 0;
    }

    .features-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .feature-icon svg {
        width: 36px;
        height: 36px;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    /* User Playlists Section - MD Breakpoint */
    .user-playlists-section {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .user-playlists-section .section-title {
        font-size: 1.75rem;
    }

    /* Featured Music Section - MD Breakpoint */
    .featured-music-section {
        padding: 1.5rem 0;
    }

    .featured-music-section .section-title {
        font-size: 1.75rem;
    }

    .featured-music-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Subscription CTA Section - MD Breakpoint */
    .subscription-cta-section {
        padding: 3rem 2rem;
        margin: 2rem 0;
    }

    .subscription-cta-content h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .subscription-price-highlight {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .subscription-price-highlight .price {
        font-size: 2.5rem;
    }

    .subscription-benefits {
        margin-bottom: 1.5rem;
    }

    .subscription-benefits li {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 0.75rem;
    }
}
