/* Windows Media Player App Styles - Windows 95/98 Style */

.mediaplayer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--win95-gray);
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    user-select: none;
}

/* Menu Bar */
.mediaplayer-menubar {
    display: flex;
    background: var(--win95-gray);
    border-bottom: 1px solid var(--win95-dark-gray);
    padding: 2px 4px;
}

.mediaplayer-menubar .menu-item {
    padding: 4px 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.mediaplayer-menubar .menu-item:hover {
    border: 1px solid var(--win95-dark-gray);
    background: var(--win95-light-gray);
}

.mediaplayer-menubar .menu-item:active {
    border: var(--border-sunken);
    background: var(--win95-dark-gray);
}

/* Main Content */
.mediaplayer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: black;
    overflow: hidden;
}

/* Visualization Area */
.visualization-area {
    height: 80px;
    background: linear-gradient(45deg, #000033, #000066);
    border-bottom: 1px solid var(--win95-dark-gray);
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.visualization-display {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.eq-bars {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 40px;
}

.eq-bar {
    width: 4px;
    background: linear-gradient(to top, #00ff00, #ffff00, #ff0000);
    height: 5%;
    transition: height 0.1s ease;
    border-radius: 1px;
}

.track-info {
    flex: 1;
    color: white;
    text-align: center;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.track-artist {
    font-size: 12px;
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* SoundCloud Container */
.soundcloud-container {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
}

.soundcloud-container iframe {
    flex: 1;
    border: none;
}

.soundcloud-credit {
    padding: 4px 8px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    font-size: 10px;
    color: #666;
    text-align: center;
}

.soundcloud-credit a {
    color: #666;
    text-decoration: none;
}

.soundcloud-credit a:hover {
    text-decoration: underline;
}

/* Control Panel */
.mediaplayer-controls {
    background: var(--win95-gray);
    border-top: 1px solid var(--win95-dark-gray);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Transport Controls */
.transport-controls {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.control-btn {
    width: 32px;
    height: 32px;
    background: var(--win95-gray);
    border: var(--border-raised);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.control-btn:hover {
    background: var(--win95-light-gray);
}

.control-btn:active {
    border: var(--border-sunken);
    background: var(--win95-dark-gray);
}

.control-btn.play-pause {
    width: 40px;
    background: #4CAF50;
    color: white;
}

.control-btn.play-pause:hover {
    background: #45a049;
}

.control-icon {
    pointer-events: none;
}

/* Progress Section */
.progress-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--win95-dark-gray);
    min-width: 35px;
}

.progress-container {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--win95-dark-gray);
    border: var(--border-sunken);
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--win95-blue);
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: -3px;
    left: 0%;
    width: 12px;
    height: 12px;
    background: var(--win95-gray);
    border: var(--border-raised);
    cursor: pointer;
    transform: translateX(-50%);
}

/* Volume Section */
.volume-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    width: 24px;
    height: 24px;
    background: var(--win95-gray);
    border: var(--border-raised);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.volume-btn:hover {
    background: var(--win95-light-gray);
}

.volume-btn:active {
    border: var(--border-sunken);
}

.volume-container {
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
}

.volume-bar {
    width: 100%;
    height: 4px;
    background: var(--win95-dark-gray);
    border: var(--border-sunken);
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: #FFA500;
    width: 50%;
    transition: width 0.1s ease;
}

.volume-handle {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 12px;
    background: var(--win95-gray);
    border: var(--border-raised);
    cursor: pointer;
    transform: translateX(-50%);
}

.volume-display {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--win95-dark-gray);
    min-width: 20px;
    text-align: right;
}

/* Status Bar */
.mediaplayer-statusbar {
    display: flex;
    background: var(--win95-gray);
    border-top: 1px solid var(--win95-dark-gray);
    height: 20px;
    font-size: 10px;
}

.status-section {
    padding: 2px 8px;
    border-right: 1px solid var(--win95-dark-gray);
    border-left: var(--border-sunken);
    background: white;
    display: flex;
    align-items: center;
    min-width: 100px;
}

.status-section:last-child {
    border-right: none;
}

.status-text {
    color: black;
}

.status-info {
    color: var(--win95-dark-gray);
}

.status-mode {
    color: var(--win95-blue);
    font-weight: bold;
}

/* Playlist Panel */
.playlist-panel {
    position: absolute;
    top: 60px;
    right: 8px;
    width: 250px;
    height: 200px;
    background: var(--win95-gray);
    border: var(--border-raised);
    z-index: 1000;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--win95-blue);
    color: white;
    font-weight: bold;
}

.playlist-header h3 {
    margin: 0;
    font-size: 11px;
}

.close-playlist {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-playlist:hover {
    background: rgba(255, 255, 255, 0.2);
}

.playlist-content {
    height: calc(100% - 24px);
    overflow-y: auto;
    background: white;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    gap: 8px;
}

.playlist-item:hover {
    background: var(--win95-light-gray);
}

.playlist-item.active {
    background: var(--win95-blue);
    color: white;
}

.playlist-number {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    min-width: 20px;
    text-align: right;
}

.playlist-info {
    flex: 1;
}

.playlist-title {
    font-size: 11px;
    font-weight: bold;
}

.playlist-artist {
    font-size: 10px;
    color: #666;
}

.playlist-item.active .playlist-artist {
    color: #ccc;
}

.playlist-duration {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #666;
}

.playlist-item.active .playlist-duration {
    color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mediaplayer-controls {
        padding: 4px;
        gap: 4px;
    }
    
    .transport-controls {
        gap: 2px;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .control-btn.play-pause {
        width: 36px;
    }
    
    .progress-section {
        gap: 4px;
    }
    
    .volume-section {
        gap: 4px;
    }
    
    .volume-container {
        width: 60px;
    }
    
    .playlist-panel {
        width: 200px;
        right: 4px;
    }
}

/* Animation for EQ bars */
@keyframes eq-pulse {
    0%, 100% { height: 5%; }
    50% { height: 80%; }
}

.eq-bar.animated {
    animation: eq-pulse 0.5s ease-in-out infinite;
}

/* Glow effect for active elements */
.control-btn.play-pause.playing {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.progress-fill.playing {
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}