.light-mode .fa-volume-down,
.light-mode .fa-volume-up {
    color: #222;
}
.light-mode #currentTime,
.light-mode #duration {
    color: #222;
}
.mode-toggle-btn {
    background: #222;
    color: #ffcc00;
    border: 2px solid #ffcc00;
    border-radius: 0;
    padding: 8px 18px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 0 #000;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mode-toggle-btn:hover {
    background: #ffcc00;
    color: #222;
    box-shadow: 3px 3px 0 0 #000;
}
.light-mode .mode-toggle-btn {
    background: #ffcc00;
    color: #222;
    border-color: #222;
    box-shadow: 2px 2px 0 0 #ccc;
}
.light-mode .mode-toggle-btn:hover {
    background: #222;
    color: #ffcc00;
    box-shadow: 3px 3px 0 0 #ccc;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #000000; 
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.container {
    width: 100%;
    max-width: 800px;
}

.music-player {
    background-color: #000000;
    border: 4px solid #00ff00;
    border-radius: 0;
    padding: 40px;
    box-shadow: 
        0 0 0 2px #000,
        0 0 0 4px #00ff00,
        10px 10px 0 0 #000,
        10px 10px 0 2px #00ff00;
    text-align: center;
    position: relative;
    max-width: 800px;
    width: 100%;
}

.player-header {
    position: relative;
    margin-bottom: 30px;
}

.player-header h1 {
    color: #00ff00; 
    margin-bottom: 0;
    font-size: 2rem; 
    font-weight: bold;
    text-shadow: 2px 2px 0 #000; 
    letter-spacing: 2px; 
    text-transform: uppercase;
}

.favourite-picks {
    position: fixed; 
    top: 10px;
    left: 10px;
    z-index: 1000; 
}

.favourite-btn {
    background: #00ff00;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 0 #000;
}

.favourite-btn:hover {
    background: #fff;
    color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 0 #000;
}

.favourite-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 #000;
}

.favourite-btn i {
    font-size: 0.75rem;
    color: inherit;
}

.album-art {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px #000,
        0 0 0 4px #00ff41,
        4px 4px 0 0 #000;
    background: #000;
    border: 2px solid #00ff41;
    image-rendering: pixelated;
}

.album-art::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: repeating-linear-gradient(
        45deg,
        #00ff41 0px,
        #00ff41 10px,
        #000 10px,
        #000 20px
    );
    border-radius: 0;
    transform: translate(-50%, -50%);
}

.album-art::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        #ffcc00 0px,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    );
    border-radius: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.song-info {
    margin-bottom: 30px;
}

.song-info h2 {
    color: #00ff00;
    font-size: 1.2rem; 
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.song-info p {
    color: #00ff41;
    font-size: 1.2rem; 
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: bold;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border: 2px solid #fff;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 2px 2px 0 #000;
}

.progress {
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            #00ff41 0px,
            #00ff41 4px,
            #00cc33 4px,
            #00cc33 8px
        );
    border-radius: 0;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background: #333;
    border: 2px solid #fff;
    border-radius: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 2px 2px 0 0 #000;
}

.control-btn:hover {
    background: #fff;
    color: #333;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 0 #000;
}

.control-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 #000;
}

.play-pause {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    background: #00ff41;
    color: #fff;
    border: 2px solid #fff;
}

.play-pause:hover {
    background: #fff;
    color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 0 #000;
}

.play-pause:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 #000;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: bold;
}

.volume-slider {
    flex: 1;
    height: 8px;
    background: #333;
    border: 2px solid #fff;
    border-radius: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: inset 2px 2px 0 #000;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff41;
    border: 2px solid #fff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff41;
    border: 2px solid #fff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.file-input-container {
    margin-bottom: 30px;
}

.file-input-label {
    display: inline-block;
    background: #00ff41;
    color: #000;
    padding: 10px 20px;
    border-radius: 0;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.1s ease;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 0 #000;
}

.file-input-label:hover {
    background: #fff;
    color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 0 #000;
}

.file-input-label:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 #000;
}

#fileInput {
    display: none;
}

.playlist {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.playlist h3 {
    color: #00ff41;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.playlist ul {
    list-style: none;
}

.playlist li {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #333;
    border: 2px solid #666;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    box-shadow: 1px 1px 0 0 #000;
}

.playlist li:hover {
    background: #fff;
    color: #333;
    border-color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 0 #000;
}

.playlist li.active {
    background: #ff0080;
    color: #fff;
    border-color: #fff;
    box-shadow: 2px 2px 0 0 #000;
}

.playlist li.active:hover {
    background: #fff;
    color: #ff0080;
    border-color: #ff0080;
}

.song-actions {
    display: flex;
    gap: 5px;
}

.heart-btn {
    background: #333;
    border: 2px solid #666;
    border-radius: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 0.7rem;
    color: #fff;
    box-shadow: 1px 1px 0 0 #000;
}

.heart-btn:hover {
    background: #fff;
    color: #333;
    border-color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 0 #000;
}

.heart-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 0px 0px 0 0 #000;
}

.heart-btn.active {
    background: #ff0080;
    border-color: #fff;
    color: #fff;
}

.heart-btn.active:hover {
    background: #fff;
    color: #ff0080;
    border-color: #ff0080;
}

/* Light Mode Theme */
.light-mode body {
    background: #f5f5f5;
    color: #222;
}
.light-mode .music-player {
    background-color: #fff;
    border-color: #222;
    box-shadow: 0 0 0 2px #ccc, 0 0 0 4px #222, 10px 10px 0 0 #ccc, 10px 10px 0 2px #222;
}
.light-mode .player-header h1 {
    color: #222;
    text-shadow: 2px 2px 0 #eee;
}
.light-mode .album-art {
    background: #eee;
    border-color: #222;
    box-shadow: 0 0 0 2px #ccc, 0 0 0 4px #222, 4px 4px 0 0 #ccc;
}
.light-mode .album-art::before {
    background: repeating-linear-gradient(45deg, #222 0px, #222 10px, #eee 10px, #eee 20px);
}
.light-mode .album-art::after {
    background: repeating-linear-gradient(45deg, #ffcc00 0px, #ffcc00 10px, #eee 10px, #eee 20px);
}
.light-mode .song-info h2 {
    color: #222;
    text-shadow: 1px 1px 0 #eee;
}
.light-mode .song-info p {
    color: #ff0080;
    text-shadow: 2px 2px 0 #eee;
}
.light-mode .progress-bar {
    background: #eee;
    border-color: #222;
    box-shadow: inset 2px 2px 0 #ccc;
}
.light-mode .progress {
    background: repeating-linear-gradient(90deg, #ffcc00 0px, #ffcc00 4px, #ff0080 4px, #ff0080 8px);
}
.light-mode .control-btn {
    background: #eee;
    color: #222;
    border-color: #222;
    box-shadow: 2px 2px 0 0 #ccc;
}
.light-mode .control-btn:hover {
    background: #222;
    color: #eee;
    box-shadow: 3px 3px 0 0 #ccc;
}
.light-mode .play-pause {
    background: #ffcc00;
    color: #222;
    border-color: #222;
}
.light-mode .play-pause:hover {
    background: #222;
    color: #ffcc00;
}
.light-mode .playlist li {
    background: #eee;
    color: #222;
    border-color: #ccc;
    box-shadow: 1px 1px 0 0 #ccc;
}
.light-mode .playlist li.active {
    background: #ffcc00;
    color: #222;
    border-color: #222;
    box-shadow: 2px 2px 0 0 #ccc;
}
.light-mode .heart-btn {
    background: #eee;
    color: #222;
    border-color: #ccc;
    box-shadow: 1px 1px 0 0 #ccc;
}
.light-mode .heart-btn.active {
    background: #ff0080;
    color: #fff;
    border-color: #222;
}
.light-mode .file-input-label {
    background: #ffcc00;
    color: #222;
    border-color: #222;
    box-shadow: 2px 2px 0 0 #ccc;
}
.light-mode .file-input-label:hover {
    background: #222;
    color: #ffcc00;
    box-shadow: 3px 3px 0 0 #ccc;
}
.light-mode .volume-slider {
    background: #eee;
    border-color: #222;
    box-shadow: inset 2px 2px 0 #ccc;
}
.light-mode .volume-slider::-webkit-slider-thumb {
    background: #ffcc00;
    border-color: #222;
    box-shadow: 1px 1px 0 #ccc;
}
.light-mode .volume-slider::-moz-range-thumb {
    background: #ffcc00;
    border-color: #222;
    box-shadow: 1px 1px 0 #ccc;
}
/* Responsive Design */
@media (max-width: 480px) {
    .music-player {
        padding: 20px;
    }
    
    .player-header h1 {
        font-size: 1.2rem;
    }
    
    .favourite-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .album-art {
        width: 180px;
        height: 180px;
    }
    
    .controls {
        gap: 15px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .play-pause {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .playlist li {
        font-size: 0.8rem;
    }
    
    .heart-btn {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #333;
    border: 1px solid #666;
    border-radius: 0;
}

.playlist::-webkit-scrollbar-thumb {
    background: #00ff41;
    border: 1px solid #fff;
    border-radius: 0;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #fff;
    border-color: #00ff41;
}
