@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #33ff33;
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.4;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="8" height="16" fill="%2333ff33"/></svg>'), auto;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

button, .btn, .progress-bar {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
}

/* CRT Monitor Effekt */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1000;
}

/* Flicker Effekt */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 998;
}

.terminal {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 0 3px #33ff33;
    background: #000;
    z-index: 1;
}

.boot-line {
    margin: 5px 0;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.player-container {
    border: 2px solid #33ff33;
    padding: 30px;
    margin: 20px 0;
    background: #000;
    box-shadow: 
        0 0 5px rgba(51, 255, 51, 0.3),
        inset 0 0 5px rgba(51, 255, 51, 0.05);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 15px;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { 
        transform: translate(0);
    }
    91% { 
        transform: translate(-2px, 1px);
    }
    92% { 
        transform: translate(2px, -1px);
    }
}

.song-info {
    text-align: center;
    font-size: 1.5rem;
    padding: 10px;
    border-top: 1px solid #33ff33;
    border-bottom: 1px solid #33ff33;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.visualizer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    margin: 30px 0;
    gap: 2px;
    border: 1px solid #33ff33;
    padding: 10px;
    position: relative;
    background: #000;
}

.visualizer-mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #33ff33;
    color: #33ff33;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    padding: 3px 10px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    z-index: 10;
}

.visualizer-mode-toggle:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
}

.bar {
    flex: 1;
    background: #33ff33;
    box-shadow: 0 0 5px #33ff33;
    height: 20%;
    transition: height 0.1s ease;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
.bar:nth-child(6) { animation-delay: 0.5s; }
.bar:nth-child(7) { animation-delay: 0.6s; }
.bar:nth-child(8) { animation-delay: 0.5s; }
.bar:nth-child(9) { animation-delay: 0.4s; }
.bar:nth-child(10) { animation-delay: 0.3s; }
.bar:nth-child(11) { animation-delay: 0.2s; }
.bar:nth-child(12) { animation-delay: 0.1s; }
.bar:nth-child(13) { animation-delay: 0s; }
.bar:nth-child(14) { animation-delay: 0.1s; }
.bar:nth-child(15) { animation-delay: 0.2s; }
.bar:nth-child(16) { animation-delay: 0.3s; }
.bar:nth-child(17) { animation-delay: 0.4s; }
.bar:nth-child(18) { animation-delay: 0.5s; }
.bar:nth-child(19) { animation-delay: 0.6s; }
.bar:nth-child(20) { animation-delay: 0.5s; }

.controls {
    text-align: center;
    margin: 30px 0;
}

.btn {
    background: transparent;
    border: 2px solid #33ff33;
    color: #33ff33;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    padding: 15px 40px;
    margin: 0 10px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.2);
}

.btn:hover {
    background: #33ff33;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.btn:active {
    transform: scale(0.95);
}

.status {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2rem;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.corner {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid #33ff33;
    z-index: 10;
}

.corner.tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner.tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner.bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner.br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.link-box {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #33ff33;
}

.link-box a {
    color: #33ff33;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.link-box a:hover {
    text-shadow: 0 0 15px #33ff33;
}

.progress-container {
    margin: 20px 0;
    padding: 15px;
    padding-top: 60px;
    border: 1px solid #33ff33;
    position: relative;
}

.container-label {
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.7;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.visualizer-label {
    z-index: 10;
}

.track-info {
    opacity: 0.7;
    margin-bottom: 10px;
}

.lyrics-icon {
    position: absolute;
    top: 10px;
    right: 65px;
    background: transparent;
    border: 1px solid #33ff33;
    color: #33ff33;
    font-size: 1.5rem;
    padding: 5px 12px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    z-index: 10;
    font-family: 'VT323', monospace;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.download-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: 1px solid #33ff33;
    color: #33ff33;
    font-size: 1.5rem;
    padding: 5px 12px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    z-index: 10;
    font-family: 'VT323', monospace;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.download-icon:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
}

.lyrics-icon:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #0a0a0a;
    border: 2px solid #33ff33;
    position: relative;
    margin: 10px 0;
    box-shadow: inset 0 0 10px rgba(51, 255, 51, 0.2);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
}

.progress-bar:hover {
    box-shadow: inset 0 0 15px rgba(51, 255, 51, 0.4);
}

.progress-fill {
    height: 100%;
    background: #33ff33;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 5px #33ff33;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-top: 5px;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: 1px solid #33ff33;
    color: #33ff33;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.control-btn:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.volume-label {
    opacity: 0.7;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.volume-slider {
    width: 100px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    background: #0a0a0a;
    border: 1px solid #33ff33;
    outline: none;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    box-shadow: inset 0 0 5px rgba(51, 255, 51, 0.2);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #33ff33;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    box-shadow: 0 0 5px #33ff33;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #33ff33;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    border: none;
    box-shadow: 0 0 5px #33ff33;
}

.volume-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px #33ff33;
}

.volume-value {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    pointer-events: none;
    text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 3px #000;
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 600px;
    max-height: 70vh;
    margin: 0;
    padding: 40px;
    border: 2px solid #33ff33;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 
        0 0 10px rgba(51, 255, 51, 0.3),
        inset 0 0 10px rgba(51, 255, 51, 0.05);
    display: flex;
    flex-direction: column;
}

.modal-header {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 6px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #33ff33;
    flex-shrink: 0;
}

.lyrics {
    font-size: 1.2rem;
    line-height: 1.8;
    white-space: pre-line;
    padding: 20px;
    border: 1px dashed #33ff33;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar für Webkit Browser (Chrome, Safari, Edge) */
.lyrics::-webkit-scrollbar {
    width: 12px;
}

.lyrics::-webkit-scrollbar-track {
    background: #0a0a0a;
    border: 1px solid #33ff33;
}

.lyrics::-webkit-scrollbar-thumb {
    background: #33ff33;
    border: 1px solid #0a0a0a;
    box-shadow: 0 0 10px #33ff33;
}

.lyrics::-webkit-scrollbar-thumb:hover {
    background: #44ff44;
    box-shadow: 0 0 15px #33ff33;
}

/* Scrollbar für Firefox */
.lyrics {
    scrollbar-width: thin;
    scrollbar-color: #33ff33 #0a0a0a;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    color: #33ff33;
    border: none;
    background: transparent;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    text-shadow: 0 0 20px #33ff33;
    transform: scale(1.2);
}

.playlist {
    border: 1px solid #33ff33;
    padding: 20px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.playlist-header {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.7;
    letter-spacing: 2px;
}

.playlist-item {
    padding: 10px;
    margin: 5px 0;
    border: 1px dashed #33ff33;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2333ff33"><rect width="12" height="12" fill="%2333ff33"/></svg>'), pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.2);
}

.playlist-item.active {
    background: rgba(51, 255, 51, 0.2);
    border-style: solid;
    box-shadow: 0 0 8px rgba(51, 255, 51, 0.3);
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    font-size: 1.2rem;
}

.playlist-item-artist {
    font-size: 1rem;
    opacity: 0.7;
}

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

.playlist::-webkit-scrollbar-track {
    background: #0a0a0a;
    border: 1px solid #33ff33;
}

.playlist::-webkit-scrollbar-thumb {
    background: #33ff33;
    box-shadow: 0 0 10px #33ff33;
}

.playlist {
    scrollbar-width: thin;
    scrollbar-color: #33ff33 #0a0a0a;
}
