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

body {
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    background: #000;
    color: #00ff41;
    cursor: crosshair;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #001a05 0%, #000000 75%);
}

#matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.04) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 65, 0.04) 100%);
    background-size: 30px 30px;
    opacity: 0.15;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 200px 50px rgba(0,0,0,0.75);
    z-index: 998;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.8), transparent);
    opacity: 0.7;
    animation: scan 4s linear infinite;
    z-index: 999;
    box-shadow: 0 0 15px 1px rgba(0, 255, 65, 0.6);
}

.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.hud-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 255, 65, 0.5);
    opacity: 0.8;
    animation: pulse-corner 6s infinite alternate;
}
.hud-corner::before, .hud-corner::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 65, 0.7);
    box-shadow: 0 0 8px #00ff41;
}
.hud-corner.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hud-corner.top-left::before { width: 15px; height: 2px; bottom: -2px; left: 0; }
.hud-corner.top-left::after { width: 2px; height: 15px; right: -2px; top: 0; }

.hud-corner.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hud-corner.top-right::before { width: 15px; height: 2px; bottom: -2px; right: 0; }
.hud-corner.top-right::after { width: 2px; height: 15px; left: -2px; top: 0; }

.hud-corner.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hud-corner.bottom-left::before { width: 15px; height: 2px; top: -2px; left: 0; }
.hud-corner.bottom-left::after { width: 2px; height: 15px; right: -2px; bottom: 0; }

.hud-corner.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }
.hud-corner.bottom-right::before { width: 15px; height: 2px; top: -2px; right: 0; }
.hud-corner.bottom-right::after { width: 2px; height: 15px; left: -2px; bottom: 0; }

#main-title {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px #00ff41, 0 0 15px #00ff41, 0 0 25px #00ff41;
    animation: pulse 3s infinite;
    z-index: 101;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
#main-title .bracket {
    font-size: 1.5em;
    margin: 0 15px;
    opacity: 0.7;
}

.controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.cyber-panel {
    background: rgba(0, 40, 10, 0.25);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 15px 20px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px));
}

.file-label {
    color: #00ff41;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px 15px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.7);
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1.5px;
    clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
}
.file-label:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
    text-shadow: 0 0 8px #00ff41;
}
.file-input { display: none; }

.button-container { display: flex; gap: 10px; }
.control-btn {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.7);
    width: 45px;
    height: 45px;
    color: #00ff41;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px #00ff41;
}
.control-btn svg {
    width: 18px;
    height: 18px;
    fill: #00ff41;
    transition: all 0.3s ease;
}
.control-btn:hover:not(:disabled) {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: scale(1.05);
}
.control-btn:hover:not(:disabled) svg {
     filter: drop-shadow(0 0 5px #00ff41);
}
.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #004400;
    border-color: #004400;
    text-shadow: none;
    background: rgba(0, 68, 0, 0.1);
}
.control-btn:disabled svg {
    fill: #004400;
}

#audio-data {
    position: fixed;
    top: 80px;
    left: 30px;
    background: rgba(0, 40, 10, 0.25);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease, left 0.5s ease;
    z-index: 101;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
}
#audio-data.visible { opacity: 1; }
    
#audio-data-header {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 8px #00ff41;
}

.data-row {
    min-width: 220px;
}
.data-label {
    display: inline-block;
    width: 60px;
}
.data-value {
     text-shadow: 0 0 5px #00ff41;
}
.data-bar {
    width: 100px;
    height: 5px;
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid rgba(0, 255, 65, 0.5);
    margin: 5px 0 10px;
    position: relative;
    overflow: hidden;
}
.data-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #90ffc1);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px #00ff41;
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px #00ff41, 0 0 15px #00ff41; }
    50% { opacity: 0.8; text-shadow: 0 0 10px #00ff41, 0 0 25px #00ff41; }
}

@keyframes pulse-corner {
    0% { border-color: rgba(0, 255, 65, 0.4); box-shadow: 0 0 10px rgba(0, 255, 65, 0.15); }
    50% { border-color: rgba(0, 255, 65, 0.8); box-shadow: 0 0 20px rgba(0, 255, 65, 0.35); }
    100% { border-color: rgba(0, 255, 65, 0.4); box-shadow: 0 0 10px rgba(0, 255, 65, 0.15); }
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

@media (max-width: 768px) {
    #main-title {
        font-size: 1.1em;
        letter-spacing: 3px;
    }
    #main-title .bracket {
        margin: 0 8px;
    }

    #audio-data {
        display: none;
    }
}

@media (max-width: 480px) {
    .hud-corner {
        width: 40px;
        height: 40px;
    }
    #main-title {
        font-size: 0.9em;
        letter-spacing: 2px;
    }
    #main-title .bracket {
        display: none;
    }
    
    .controls {
        width: calc(100% - 40px);
        bottom: 20px;
    }
    
    .cyber-panel {
        padding: 10px;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .file-label {
        padding: 8px 10px;
        font-size: 0.7em;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Yeni: Tema Butonu Stili */
.theme-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.7);
    color: #00ff41;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px; /* Panelden biraz üstte */
    display: block;
    margin-left: auto;
    margin-right: auto;
    clip-path: polygon(0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
    text-shadow: 0 0 8px #00ff41;
}
.theme-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
}