/* Spotify Player CSS, aligned with Apple Music player's light theme */
.spotify-player {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    font-family: 'SF Pro Text', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}
.spotify-player::-webkit-scrollbar {
    width: 0;
}
.spotify-player::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
.spotify-player::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}
.spotify-player::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
.spotify-player {
    scrollbar-width: none;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(255, 255, 255, 0.1);
}
.spotify-player.embed-mode {
    background: transparent;
    backdrop-filter: none;
}
.spotify-player .main-content {
    width: 100% !important;
    max-width: 100% !important;
    /*padding: 0 0.25rem 80px 1rem !important;*/
    z-index: 1 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    scrollbar-gutter: auto !important;
}
.spotify-player .main-content::-webkit-scrollbar {
    width: 0 !important;
}
.spotify-player .main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
}
.spotify-player .main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
}
.spotify-player .main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}
.spotify-player .main-content {
    scrollbar-width: none !important;
}
.spotify-player.embed-mode .main-content {
    padding-bottom: 80px !important;
}
.spotify-player .top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    background: linear-gradient(320deg, #1db954, #1ed760) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px) !important;
    border-radius: 0 0 8px 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}
.spotify-player #artist-display {
    font-family: 'SF Pro Text', 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    padding: 0.5rem 0.5rem 0.5rem 1.0rem !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player .view-toggle {
    display: flex !important;
    gap: 0.75rem !important;
}
.spotify-player .view-toggle button {
    background: rgba(29, 185, 84, 0.2) !important;
    color: #ffffff !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border: none !important;
}
.spotify-player .view-toggle button:hover {
    background: rgba(29, 185, 84, 0.4) !important;
    transform: scale(1.05) !important;
}
.spotify-player .view-toggle button:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
}
.spotify-player .view-toggle button.active {
    background: linear-gradient(320deg, #1ed760, #1db954) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transform: scale(1.05) !important;
}
.spotify-player .content-columns {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-top: 0.5rem;
    min-height: calc(100vh - 140px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    padding: 3px;
}
.spotify-player.embed-mode .content-columns {
    min-height: 300px;
}
.spotify-player .album-thumbs {
    flex: 0 0 40%;
    height: 100%;
    background: rgba(241, 245, 249, 0.9) !important;
    backdrop-filter: blur(6px) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.spotify-player .album-thumbs h2 {
    font-family: 'SF Pro Text', 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0.75rem 0 0.75rem 1.5rem !important;
    border-bottom: 1px solid #999 !important;
    -webkit-font-smoothing: antialiased !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    background: linear-gradient(308deg, #1db954, #1ed760) !important;
    backdrop-filter: blur(6px) !important;
    color: #ffffff !important;
    z-index: 5 !important;
}
.spotify-player #thumbnails-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 0.75rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.25rem !important;
}
.spotify-player .album-thumbs::-webkit-scrollbar,
.spotify-player #thumbnails-content::-webkit-scrollbar {
    width: 0 !important;
}
.spotify-player .album-thumbs::-webkit-scrollbar-track,
.spotify-player #thumbnails-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
}
.spotify-player .album-thumbs::-webkit-scrollbar-thumb,
.spotify-player #thumbnails-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
}
.spotify-player .album-thumbs::-webkit-scrollbar-thumb:hover,
.spotify-player #thumbnails-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}
.spotify-player .album-thumbs,
.spotify-player #thumbnails-content {
    scrollbar-width: none !important;
}
.spotify-player #thumbnails {
    background: transparent !important;
    border-radius: 8px 0px 0px 0px !important;
}
.spotify-player .thumbnail {
    background: rgba(241, 245, 249, 0.9) !important;
    border-radius: 8px !important;
    padding: 0.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    will-change: transform !important;
}
.spotify-player .thumbnail:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3) !important;
}
.spotify-player .thumbnail:active {
    transform: scale(0.98) !important;
}
.spotify-player .thumbnail.playing {
    background: rgba(29, 185, 84, 0.2) !important;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.7) !important;
}
.spotify-player .thumbnail.playing::before {
    content: '' !important;
    background: url('/graphics/directory/spotify_equalizer.gif') no-repeat center !important;
    background-size: contain !important;
    width: 16px !important;
    height: 12px !important;
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    z-index: 1 !important;
    animation: pulse 1s ease-in-out infinite !important;
}
.spotify-player .thumbnail img {
    width: 100% !important;
    max-width: 200px !important;
    border-radius: 6px !important;
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    margin: 0 auto !important;
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.2)) !important;
}
.spotify-player .thumbnail img:hover {
    transform: scale(1.03) !important;
}
.spotify-player .thumbnail p {
    font-family: 'SF Pro Text', 'Poppins', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0 !important;
    color: #5a5a5a !important;
    text-align: center !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player .queue {
    flex: 0 0 calc(60% - 4px);
    height: 100%;
    background: rgba(241, 245, 249, 0.9) !important;
    border-radius: 0px 8px 0px 0px !important;
    padding: 0 0.5rem 0.75rem 0.75rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    min-width: 200px !important; /* Prevent collapse */
    box-sizing: border-box !important;
    backdrop-filter: blur(6px) !important;
}
.spotify-player .queue::-webkit-scrollbar {
    width: 0 !important;
}
.spotify-player .queue::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
}
.spotify-player .queue::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
}
.spotify-player .queue::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}
.spotify-player .queue {
    scrollbar-width: none !important;
}
.spotify-player .queue h2 {
    font-family: 'SF Pro Text', 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 -0.75rem !important;
    padding: 0.75rem 0 0.75rem 1.5rem !important;
    border-bottom: 1px solid #999 !important;
    -webkit-font-smoothing: antialiased !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    background: linear-gradient(135deg, #1db954, #1ed760) !important;
    color: #ffffff !important;
    z-index: 5 !important;
}
.spotify-player .queue-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.5rem !important;
    background: rgba(241, 245, 249, 0.9) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform !important;
    min-height: 48px !important;
    max-height: 48px !important;
}
.spotify-player .queue-item:hover {
    background: rgba(229, 231, 235, 0.9) !important;
    transform: translateX(5px) scale(1.02) !important;
}
.spotify-player .queue-item.playing::before {
    content: '' !important;
    background: url('/graphics/directory/spotify_equalizer.gif') no-repeat center !important;
    background-size: contain !important;
    width: 16px !important;
    height: 12px !important;
    margin-right: 8px !important;
    animation: pulse 1s ease-in-out infinite !important;
}
.spotify-player .queue-item-title {
    flex: 1 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #5a5a5a !important;
    -webkit-font-smoothing: antialiased !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.spotify-player .queue-item-duration {
    width: 60px !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #5a5a5a !important;
    text-align: right !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player .queue-item .thumbnail-container {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    overflow: hidden !important;
}
.spotify-player .queue-item .thumbnail-container img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}
.spotify-player .queue-item .equalizer {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    width: 12px !important;
    height: 9px !important;
}
.spotify-player .resizer {
    flex: 0 0 4px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    cursor: col-resize;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100 !important;
    pointer-events: auto !important;
    user-select: none !important;
    background: transparent !important;
}
.spotify-player .resizer:hover {
    border-left: 2px solid rgba(29, 185, 84, 0.5);
    border-right: 2px solid rgba(29, 185, 84, 0.5);
}
.spotify-player .player {
    position: fixed !important;
    bottom: -44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 12px 12px 0 0 !important;
    border-top: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    will-change: transform !important;
}
.spotify-player .player:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1) !important;
}
.spotify-player .player.embed-mode {
    position: fixed !important;
    bottom: -44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px 12px 0 0 !important;
    border-top: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
}
.directory-right-column.spotify-active .spotify-player .player {
    position: fixed !important;
    bottom: -44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    z-index: 9999 !important;
}
.spotify-player .player-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
}
.spotify-player .player-content .album-art-info-wrapper {
    grid-column: 1 / 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    overflow: hidden !important;
}
.spotify-player .player-content .central-wrapper {
    grid-column: 2 / 3 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
.spotify-player .player-content .volume-control {
    grid-column: 3 / 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}
.spotify-player .player-content .connect-device {
    display: flex !important;
    align-items: center !important;
}
.spotify-player #player-art {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 1/1 !important;
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.2)) !important;
}
.spotify-player #player-art:hover {
    transform: scale(1.05) rotate(2deg) !important;
}
.spotify-player .track-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    max-height: 50px !important;
    overflow: hidden !important;
    margin-left: -30px !important;
}
.spotify-player #track-title,
.spotify-player #artist-name,
.spotify-player #album-name {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.spotify-player #track-title {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #333333 !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player #artist-name,
.spotify-player #album-name {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #5a5a5a !important;
    opacity: 0.9 !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player .controls {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}
.spotify-player .controls button {
    background: transparent !important;
    color: #5a5a5a !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 34px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}
.spotify-player .controls button:hover {
    transform: scale(1.1) !important;
    color: #1db954 !important;
}
.spotify-player .controls button:focus-visible {
    outline: 2px solid #1db954 !important;
    outline-offset: 2px !important;
}
.spotify-player .controls #play-pause {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    line-height: 44px !important;
    background: #333333 !important;
    color: #ffffff !important;
}
.spotify-player .controls #play-pause:hover {
    background: #1a1a1a !important;
    transform: scale(1.1) !important;
}
.spotify-player .controls button:disabled {
    color: #9ca3af !important;
    cursor: not-allowed !important;
}
.spotify-player .controls button.active {
    color: #1db954 !important;
}
.spotify-player .progress-bar-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.5rem !important;
}
.spotify-player #progress-container {
    flex: 1 !important;
}
.spotify-player #progress-bar {
    height: 5px !important;
    background: #e5e7eb !important;
    border-radius: 2.5px !important;
    position: relative !important;
    cursor: pointer !important;
}
.spotify-player #progress-slider {
    width: 100% !important;
    height: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
}
.spotify-player #progress-slider::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 5px !important;
}
.spotify-player #progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #1db954 !important;
    border-radius: 50% !important;
    margin-top: -3px !important;
}
.spotify-player #progress-slider::-moz-range-track {
    background: transparent !important;
    height: 5px !important;
}
.spotify-player #progress-slider::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    background: #1db954 !important;
    border-radius: 50% !important;
    border: none !important;
}
.spotify-player #progress-slider:focus {
    outline: none !important;
}
.spotify-player #progress-slider:focus-visible {
    outline: 2px solid #1db954 !important;
    outline-offset: 2px !important;
}
.spotify-player #progress-bar:hover {
    background: #d1d5db !important;
}
.spotify-player #progress {
    height: 100% !important;
    background: linear-gradient(to right, #1db954, #1ed760) !important;
    border-radius: 2.5px !important;
}
.spotify-player #current-time,
.spotify-player #duration {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #5a5a5a !important;
    min-width: 40px !important;
    text-align: center !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player .volume-progress-wrapper {
    position: relative !important;
    width: 100px !important;
    height: 5px !important;
    margin-left: -10px !important;
}
.spotify-player #volume {
    width: 100px !important;
    height: 5px !important;
    opacity: 0 !important;
    cursor: pointer !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.spotify-player .volume-progress {
    width: 100px !important;
    height: 5px !important;
    background: #e5e7eb !important;
    border-radius: 2.5px !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}
.spotify-player .volume-progress-fill {
    height: 100% !important;
    background: linear-gradient(to right, #1ed760, #1db954) !important;
    border-radius: 2.5px !important;
    transition: width 0.1s linear !important;
}
.spotify-player #volume::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 5px !important;
}
.spotify-player #volume::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #1db954 !important;
    border-radius: 50% !important;
    margin-top: -3px !important;
}
.spotify-player #volume::-moz-range-track {
    background: transparent !important;
    height: 5px !important;
}
.spotify-player #volume::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    background: #1db954 !important;
    border-radius: 50% !important;
    border: none !important;
}
.spotify-player #volume:focus {
    outline: none !important;
}
.spotify-player #volume:focus-visible {
    outline: 2px solid #1db954 !important;
    outline-offset: 2px !important;
}
.spotify-player .volume-progress:hover {
    background: #d1d5db !important;
}
.spotify-player .volume-control i,
.spotify-player .connect-device i {
    font-size: 14px !important;
    color: #5a5a5a !important;
    cursor: pointer !important;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.spotify-player .volume-control i:hover,
.spotify-player .connect-device i:hover {
    color: #1db954 !important;
}
.spotify-player #modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    display: none !important;
}
.spotify-player #modal-overlay.show {
    display: block !important;
}
.spotify-player #device-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    color: #333333 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    z-index: 1001 !important;
    min-width: 300px !important;
    max-width: 90% !important;
    display: none !important;
}
.spotify-player #device-modal.show {
    display: block !important;
}
.spotify-player #device-modal h3 {
    font-family: 'SF Pro Text', 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin: 0 0 10px !important;
    -webkit-font-smoothing: antialiased !important;
}
.spotify-player #device-modal .device-item {
    padding: 10px !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    color: #5a5a5a !important;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.spotify-player #device-modal .device-item:hover {
    background: rgba(29, 185, 84, 0.2) !important;
}
.spotify-player #device-modal .device-item.active {
    background: rgba(29, 185, 84, 0.3) !important;
    color: #333333 !important;
}
.spotify-player #close-device-modal {
    background: #1db954 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.spotify-player #close-device-modal:hover {
    background: #1ed760 !important;
}
.spotify-player #loading-spinner {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    z-index: 1002 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    display: none !important;
}
.spotify-player #loading-spinner.show {
    display: block !important;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
@media (max-width: 768px) {
    .spotify-player .main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.25rem 120px 1rem !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto !important;
    }
    .spotify-player .main-content::-webkit-scrollbar {
        width: 0 !important;
    }
    .spotify-player .main-content {
        scrollbar-width: none !important;
    }
    .spotify-player.embed-mode .main-content {
        padding-bottom: 120px !important;
    }
    .spotify-player .top-bar {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
        margin: 0 !important;
        padding: 0.25rem 0.5rem !important;
        background: linear-gradient(320deg, #1db954, #1ed760) !important;
        color: #ffffff !important;
        border-radius: 0 0 8px 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }
    .spotify-player #artist-display {
        font-size: 0.875rem !important;
        padding: 0.25rem 0.5rem !important;
        color: #ffffff !important;
    }
    .spotify-player .view-toggle button {
        background: rgba(29, 185, 84, 0.2) !important;
        color: #ffffff !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 6px !important;
        font-size: 0.8rem !important;
        font-weight: 400 !important;
    }
    .spotify-player .view-toggle button:hover {
        background: rgba(29, 185, 84, 0.4) !important;
    }
    .spotify-player .view-toggle button:focus-visible {
        outline: 2px solid #ffffff !important;
        outline-offset: 2px !important;
    }
    .spotify-player .view-toggle button.active {
        background: linear-gradient(320deg, #1ed760, #1db954) !important;
        color: #ffffff !important;
        font-weight: 500 !important;
    }
    .spotify-player .content-columns {
        flex-direction: column !important;
        min-height: calc(100vh - 140px) !important;
        max-height: 50vh !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin-top: 0.5rem !important;
    }
    .spotify-player .album-thumbs {
        flex: 0 0 auto !important;
        height: auto !important;
        padding: 0 0.5rem 0.5rem 0.5rem !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .spotify-player #thumbnails-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        padding: 0.5rem 0.25rem !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .spotify-player .album-thumbs::-webkit-scrollbar,
    .spotify-player #thumbnails-content::-webkit-scrollbar {
        width: 0 !important;
    }
    .spotify-player .album-thumbs,
    .spotify-player #thumbnails-content {
        scrollbar-width: none !important;
    }
    .spotify-player .queue {
        flex: 0 0 auto !important;
        height: auto !important;
        padding: 0 0.5rem 0.5rem 0.5rem !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        min-width: 100% !important;
        background: rgba(241, 245, 249, 0.9) !important;
        border-radius: 0px 8px 0px 0px !important;
        backdrop-filter: blur(6px) !important;
    }
    .spotify-player .queue::-webkit-scrollbar {
        width: 0 !important;
    }
    .spotify-player .queue {
        scrollbar-width: none !important;
    }
    .spotify-player .queue h2 {
        margin: 0 -0.75rem !important;
        padding: 0.75rem 0 0.75rem 1.5rem !important;
        border-bottom: 1px solid #999 !important;
        background: linear-gradient(135deg, #1db954, #1ed760) !important;
        color: #ffffff !important;
    }
    .spotify-player .queue-item {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 0.5rem !important;
        background: rgba(241, 245, 249, 0.9) !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }
    .spotify-player .queue-item:hover {
        background: rgba(229, 231, 235, 0.9) !important;
        transform: translateX(5px) scale(1.02) !important;
    }
    .spotify-player .queue-item .thumbnail-container {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        overflow: hidden !important;
    }
    .spotify-player .queue-item .thumbnail-container img {
        width: 40px !important;
        height: 40px !important;
        object-fit: cover !important;
        border-radius: 4px !important;
    }
    .spotify-player .queue-item .equalizer {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        width: 12px !important;
        height: 9px !important;
    }
    .spotify-player .player-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    .spotify-player .player-content .album-art-info-wrapper {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        overflow: hidden !important;
    }
    .spotify-player .player-content .central-wrapper {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .spotify-player .player-content .volume-control {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 90px !important;
    }
    .spotify-player .player-content .connect-device {
        display: flex !important;
        align-items: center !important;
    }
    .spotify-player #player-art {
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
    }
    .spotify-player #track-title {
        font-size: 0.875rem !important;
    }
    .spotify-player #artist-name,
    .spotify-player #album-name {
        font-size: 0.7rem !important;
    }
    .spotify-player .track-info {
        max-height: 45px !important;
        text-align: center !important;
        margin-left: -30px !important;
    }
    .spotify-player .album-art-info-wrapper {
        width: auto !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    .spotify-player .central-wrapper {
        width: 100% !important;
        gap: 0.5rem !important;
    }
    .spotify-player .controls {
        gap: 0.5rem !important;
    }
    .spotify-player .controls button {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        line-height: 30px !important;
    }
    .spotify-player .controls #play-pause {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        line-height: 40px !important;
    }
    .spotify-player .progress-bar-container {
        width: 90% !important;
        margin: 0 auto !important;
        gap: 0.5rem !important;
    }
    .spotify-player #progress-container {
        flex: 1 !important;
    }
    .spotify-player #progress-bar {
        height: 4px !important;
    }
    .spotify-player #progress-slider {
        height: 4px !important;
    }
    .spotify-player #progress-slider::-webkit-slider-runnable-track {
        height: 4px !important;
    }
    .spotify-player #progress-slider::-webkit-slider-thumb {
        margin-top: -2px !important;
    }
    .spotify-player #progress-slider::-moz-range-track {
        height: 4px !important;
    }
    .spotify-player #current-time,
    .spotify-player #duration {
        font-size: 0.7rem !important;
        min-width: 35px !important;
    }
    .spotify-player .volume-progress-wrapper {
        width: 90px !important;
        height: 4px !important;
        margin-left: -10px !important;
    }
    .spotify-player #volume {
        width: 90px !important;
        height: 4px !important;
    }
    .spotify-player .volume-progress {
        width: 90px !important;
        height: 4px !important;
    }
    .spotify-player .volume-progress-fill {
        height: 100% !important;
    }
    .spotify-player .volume-control i,
    .spotify-player .connect-device i {
        font-size: 12px !important;
    }
    .spotify-player #loading-spinner {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
}
/* ——— REGULAR MODE: SPOTIFY — MOVE CONTENT UP 44px ——— */
.directory-right-column.spotify-active:not(.media-mode) .spotify-player .main-content {
    margin-top: -44px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ——— MEDIA MODE: SPOTIFY — RESET TO DEFAULT ——— */
body.media-mode .directory-right-column.spotify-active .spotify-player .main-content {
    margin-top: 0 !important;
    position: static !important;
    z-index: auto !important;
}