/* Global Music Player Styles - Modernized (Spotify-like) */

/* Prevent horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Base Player Bar */
.global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(12,12,12,0.98));
    border-top: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    padding: 10px 18px;
    display: flex;
    opacity: 1;
    visibility: visible;
    transition: transform 0.25s ease, opacity 0.25s ease;
    align-items: center;
    height: 72px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.global-player.visible { transform: translateY(0); }
.global-player.hidden { transform: translateY(110%); opacity: 0; }

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    height: 100%;
}

/* Track Info */
.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    max-width: 30%;
    padding: 5px 0;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
}

.track-details {
    overflow: hidden;
}

.track-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.track-artist {
    font-size: 12px;
    color: #B3B3B3;
    margin: 0;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 auto;
    max-width: 640px;
    padding: 0 20px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #ddd;
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.player-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.player-btn:hover::before {
    transform: scale(1);
}

.player-btn:hover { 
    transform: scale(1.1); 
    color: #fff; 
    background: rgba(255, 255, 255, 0.05);
}

.play-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn:hover::before {
    opacity: 1;
}

.play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(29, 185, 84, 0.2);
}

.play-btn:hover { transform: scale(1.06); }

/* Progress Bar */
.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 220px;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.progress-container:hover {
    height: 6px;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    border-radius: 2px;
    transition: width 0.08s linear;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.time-display {
    width: 90px;
    text-align: right;
    font-size: 12px;
    color: #bdbdbd;
    min-width: 90px;
}

/* Player Extra Controls */
.player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: flex-end;
}

.player-btn.active { 
    color: #1DB954;
    position: relative;
}

.player-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #1DB954;
    border-radius: 50%;
}

/* Fullscreen Player Styles */
.global-player-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10010;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fs-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Background with blur effect */
.fs-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.6);
    transform: scale(1.1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

/* Header */
.fs-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 3;
}

.fs-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.fs-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Main Content */
.fs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 160px; /* Reduced top padding, increased bottom padding for purchase section */
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

/* Artwork with Vinyl Effect */
.fs-artwork {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.fs-vinyl {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-vinyl-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fs-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fs-vinyl-ring {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Track Info */
.fs-track-info {
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin: 0 0 5px;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.fs-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.fs-artist {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px;
    font-weight: 500;
}

/* Progress Bar */
.fs-progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.fs-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 50px;
    font-variant-numeric: tabular-nums;
}

.fs-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.fs-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.fs-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fs-progress:hover .fs-progress-handle,
.fs-progress:active .fs-progress-handle {
    opacity: 1;
}

/* Controls */
.fs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 5px 0 20px;
    position: relative;
    z-index: 2;
}

.fs-control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fs-control-btn.active {
    color: #1DB954;
}

.fs-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1DB954;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.3);
}

.fs-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(29, 185, 84, 0.4);
}

.fs-play-btn:active {
    transform: scale(0.98);
}

/* Purchase Section */
.fs-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 25px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
}

.fs-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fs-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1DB954;
}

.fs-price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.fs-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 5px 15px;
}

.fs-qty-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fs-qty {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.fs-buy-btn {
    background: #1DB954;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
    white-space: nowrap;
}

.fs-buy-btn:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.fs-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(29, 185, 84, 0.3);
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .fs-content {
        padding: 30px 15px 80px;
    }
    
    .fs-purchase {
        width: 90%;
        max-width: 500px;
        bottom: 20px;
        padding: 15px 20px;
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    .fs-content {
        padding: 30px 15px 15px;
        justify-content: flex-start;
    }
    
    .fs-artwork {
        max-width: 280px;
        margin: 0 auto 15px;
    }
    .fs-title {
        font-size: 24px;
    }
    
    .fs-artist {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .fs-content {
        padding: 60px 15px 30px;
        justify-content: flex-start;
    }
    
    .fs-artwork {
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .fs-controls {
        margin: 20px 0;
    }
    
    .fs-purchase {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .fs-buy-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
        margin-top: 10px;
        order: 1;
    }
    
    .fs-quantity {
        order: 2;
        margin: 5px 0;
    }
    
    .fs-artwork {
        width: 280px;
        height: 280px;
        margin: 0 auto 20px;
    }
    
    .fs-vinyl {
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .fs-vinyl-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
    }
    
    .fs-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.5);
        min-width: 100%;
        min-height: 100%;
    }
    
    .fs-track-info {
        padding: 0 10px;
    }
    
    .fs-title {
        font-size: 1.5rem;
    }
    
    .fs-artist {
        font-size: 1rem;
    }
    
    .fs-controls {
        margin: 20px 0;
    }
    
    .fs-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .fs-vinyl-ring {
        top: 3%;
        left: 3%;
        right: 3%;
        bottom: 3%;
    }
}

.global-player.fullscreen .fs-details {
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.global-player.fullscreen .fs-title {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.global-player.fullscreen .fs-artist {
    margin: 0 0 8px 0;
    color: #bdbdbd;
    font-size: 18px;
    font-weight: 500;
}

.global-player.fullscreen .fs-price-qty {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.global-player.fullscreen .fs-price {
    font-size: 22px;
    font-weight: 600;
    color: #1DB954;
    background: rgba(29,185,84,0.08);
    padding: 6px 18px;
    border-radius: 8px;
}

.global-player.fullscreen .fs-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 4px 12px;
}

.global-player.fullscreen .fs-qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}
.global-player.fullscreen .fs-qty-btn:hover {
    background: #1DB954;
    color: #181818;
}

.global-player.fullscreen .fs-qty {
    font-size: 18px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    color: #fff;
}

.global-player.fullscreen .fs-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.global-player.fullscreen .fs-buy-btn {
    background: #1DB954;
    color: #181818;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(29,185,84,0.16);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.global-player.fullscreen .fs-buy-btn:hover {
    background: #19a34a;
}

.global-player.fullscreen .fs-close-btn {
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.global-player.fullscreen .fs-close-btn:hover {
    background: #333;
}

@media (max-width: 600px) {
    .global-player {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        height: 68px;
        padding: 8px 6px;
        border-radius: 0;
        box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
        justify-content: center;
    }
    .player-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        min-width: 0;
        max-width: 100vw;
        height: 100%;
    }
    .track-info {
        min-width: 0;
        max-width: 50vw;
        gap: 8px;
    }
    .player-cover {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    .track-title {
        font-size: 13px;
        max-width: 120px;
    }
    .track-artist {
        font-size: 11px;
    }
    .player-controls {
        gap: 4px;
        max-width: 220px;
    }
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .player-actions {
        gap: 4px;
        min-width: 40px;
    }
    .progress-container {
        height: 4px;
    }
    .time-display {
        font-size: 11px;
        min-width: 60px;
    }
    /* Fullscreen mobile styles */
    .global-player.fullscreen {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        min-width: 0;
        max-width: 100vw;
        min-height: 100vh;
        padding: 12px 0 0 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .global-player.fullscreen .player-cover,
    .global-player.fullscreen .fs-cover {
        width: 160px;
        height: 160px;
        margin-bottom: 12px;
    }
    .global-player.fullscreen .fs-title {
        margin: 10px 16px;
    }
    .global-player.fullscreen .fs-close-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
    .global-player.fullscreen .fs-details {
        gap: 10px;
    }
}

/* Responsive Styles */
@media (max-width: 920px) {
    .track-info { 
        max-width: 40%;
        min-width: 160px;
    }
    .player-controls { 
        max-width: 420px;
        gap: 6px;
    }
    .player-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .play-btn {
        width: 44px;
        height: 44px;
    }
}

/* Mobile Layout */
@media (max-width: 640px) {
    .global-player {
        height: 80px;
        padding: 10px 12px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .player-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
        gap: 8px;
    }

    .track-info {
        flex: 0 0 auto;
        max-width: 45%;
        min-width: 0;
        gap: 10px;
    }

    .track-details { 
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .track-title {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .track-artist {
        font-size: 11px;
        color: #a0a0a0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .player-cover {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .player-controls {
        flex: 1 1 auto;
        max-width: none;
        justify-content: center;
        gap: 6px;
        padding: 0 8px;
    }

    .player-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .play-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .player-progress {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 3px;
        min-width: 0;
        background: rgba(255,255,255,0.04);
    }

    .progress-container {
        height: 3px;
        border-radius: 0;
        background: transparent;
    }

    .progress-bar {
        height: 100%;
    }

    .time-display {
        display: none;
    }

    .player-actions {
        min-width: auto;
        gap: 6px;
    }

    /* Fullscreen mode for mobile */
    .global-player.fullscreen {
        padding: 16px 12px 60px; /* Increased bottom padding for mobile bottom bar */
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh; /* Ensure full viewport height */
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .global-player.fullscreen .fs-cover {
        width: 220px;
        height: 220px;
        margin: 20px auto 20px;
        flex-shrink: 0;
    }

    .global-player.fullscreen .fs-details {
        padding: 0 20px;
        width: 100%;
        max-width: 500px;
        box-sizing: border-box;
        margin: 0 auto;
        text-align: center;
    }

    .global-player.fullscreen .fs-title {
        font-size: 24px;
        margin: 0 0 8px 0;
        line-height: 1.2;
        padding: 0 10px;
    }

    .global-player.fullscreen .fs-artist {
        font-size: 16px;
        margin: 0 0 24px 0;
        color: #b3b3b3;
        padding: 0 10px;
    }

    .global-player.fullscreen .fs-price-qty {
        margin: 0 auto 20px;
        max-width: 300px;
    }

    .global-player.fullscreen .fs-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        padding: 0 20px;
        margin: 20px auto 0;
        gap: 12px;
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        background: rgba(18, 18, 18, 0.95);
        padding: 16px 20px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        z-index: 10002;
    }

    .global-player.fullscreen .fs-buy-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 8px;
        border: none;
        background: #1DB954;
        color: #000;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .global-player.fullscreen .fs-close-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
        margin-top: 8px;
        transition: all 0.2s ease;
    }

    .global-player.fullscreen .fs-buy-btn:active {
        transform: scale(0.98);
        background: #1ed760;
    }

    .global-player.fullscreen .fs-close-btn:active {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Adjust content padding to account for fixed action bar */
    .global-player.fullscreen .player-content {
        padding-bottom: 120px; /* Space for the fixed action bar */
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .global-player {
        height: 76px;
        padding: 8px 10px;
    }
    
    .global-player.fullscreen {
        padding-bottom: 80px; /* More space for the action bar */
    }
    
    .global-player.fullscreen .fs-cover {
        width: 180px;
        height: 180px;
        margin: 40px auto 20px;
    }
    
    .global-player.fullscreen .fs-title {
        font-size: 20px;
    }
    
    .global-player.fullscreen .fs-artist {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .global-player.fullscreen .fs-actions {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .global-player.fullscreen .fs-buy-btn,
    .global-player.fullscreen .fs-close-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .track-info {
        max-width: 50%;
    }

    .player-cover {
        width: 46px;
        height: 46px;
    }

    .track-title {
        font-size: 11px;
    }

    .track-artist {
        font-size: 10px;
    }

    .player-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
    }

    .global-player.fullscreen .fs-cover {
        width: 200px;
        height: 200px;
    }

    .global-player.fullscreen .fs-title {
        font-size: 22px;
    }

    .global-player.fullscreen .fs-artist {
        font-size: 15px;
    }
}

/* Small animation for play state */
.global-player.is-playing .play-btn { box-shadow: 0 8px 26px rgba(29,185,84,0.18); transform: translateY(-1px); }

/* Add padding to page to avoid content being hidden behind player */
.player-active { padding-bottom: 80px; }
