/* Music Player Styles */
:root {
    --music-panel-width: 400px;
    --music-panel-bg: rgba(15, 23, 42, 0.6);
    --music-panel-border: rgba(255, 255, 255, 0.1);
    --music-accent: var(--color-primary, #00f5ff);
}

/* Music Orb Position - Top Left */
.music-orb-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.music-orb:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: var(--music-accent);
    box-shadow: 0 0 15px var(--music-accent);
}

.music-orb svg {
    width: 24px;
    height: 24px;
}

/* Music Player Panel */
.music-player-panel {
    position: absolute;
    top: 0;
    left: 60px;
    /* Offset from orb */
    width: 0;
    height: auto;
    background: var(--music-panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--music-panel-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.music-player-panel.active {
    width: var(--music-panel-width);
    opacity: 1;
    pointer-events: all;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Track Info */
.track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.track-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(45deg, #333, #666);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.track-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-thumbnail.playing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-details {
    flex: 1;
    overflow: hidden;
}

.track-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.track-artist {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.control-btn.play-btn {
    width: 48px;
    height: 48px;
    background: var(--music-accent);
    color: black;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.control-btn.play-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.control-btn.play-btn svg {
    width: 24px;
    height: 24px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--music-accent);
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

/* Volume Control */
.volume-control {
    display: none;
    /* Hidden for now */
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.volume-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.volume-btn:hover {
    color: white;
}

.volume-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

#music-volume {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

#music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--music-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

#music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Time & Link */
.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.music-source-link {
    color: var(--music-accent);
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.music-source-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .music-orb-container {
        top: 1rem;
        left: 1rem;
    }

    .music-player-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90vw;
        max-width: 350px;
        opacity: 0;
        pointer-events: none;
        z-index: 1001;
    }

    .music-player-panel.active {
        transform: translate(-50%, -50%) scale(1);
    }
}