@font-face {
    font-family: 'VCR_OSD_MONO';
    src: url('fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #151515 75%, #0a0a0a 100%);
    color: #e0e0e0;
    overflow-x: hidden;
}

.main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle, hsla(229, 73%, 58%, 1) 0%, hsla(246, 42%, 23%, 1) 70%, hsla(243, 69%, 12%, 1) 100%);
    position: relative;
}

.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, #0033660a 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #00ccaa08 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, #ff660008 0%, transparent 50%);
    pointer-events: none;
}

.main-content {
    text-align: center;
    max-width: 1200px;
    z-index: 1;
    position: relative;
}

.main-title {
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #00ccaa;
    text-shadow: 
        0 0 10px #00ccaa40,
        0 0 20px #00ccaa20,
        0 0 30px #00ccaa10;
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        text-shadow: 
            0 0 10px #00ccaa40,
            0 0 20px #00ccaa20,
            0 0 30px #00ccaa10;
    }
    to {
        text-shadow: 
            0 0 15px #00ccaa50,
            0 0 25px #00ccaa30,
            0 0 35px #00ccaa15;
    }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 60px;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 2px;
    color: #b0b0b0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
    padding: 0 20px;
}

.feature-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ccaa, transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(35, 35, 35, 0.9);
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0, 204, 170, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.visualization::before {
    content: '';
    width: 40px;
    height: 30px;
    background: linear-gradient(90deg, 
        #00ccaa 0%, transparent 10%, 
        #00ccaa 20%, transparent 30%,
        #00ccaa 40%, transparent 50%,
        #00ccaa 60%, transparent 70%,
        #00ccaa 80%, transparent 90%,
        #00ccaa 100%
    );
    background-size: 4px 100%;
    border: 1px solid #00ccaa;
    border-radius: 2px;
    filter: drop-shadow(0 0 5px rgba(0, 204, 170, 0.3));
}


.feature-icon.effects::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 2px solid #00ccaa;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, transparent 60%, #00ccaa 61%, #00ccaa 65%, transparent 66%);
    filter: drop-shadow(0 0 5px rgba(0, 204, 170, 0.3));
}

.feature-icon.effects::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #00ccaa;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 -8px 0 #00ccaa,
        0 8px 0 #00ccaa;
}

.feature-icon.tools::before {
    content: '';
    width: 40px;
    height: 30px;
    background: linear-gradient(to bottom,
        #00ccaa 0%, #00ccaa 15%, transparent 15%, transparent 25%,
        #00ccaa 25%, #00ccaa 40%, transparent 40%, transparent 50%,
        #00ccaa 50%, #00ccaa 65%, transparent 65%, transparent 75%,
        #00ccaa 75%, #00ccaa 90%, transparent 90%, transparent 100%
    );
    border: 1px solid #00ccaa;
    border-radius: 2px;
    position: relative;
    filter: drop-shadow(0 0 5px rgba(0, 204, 170, 0.3));
}

.feature-icon.tools::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: #00ccaa;
    border-radius: 1px;
}

.feature-icon.cross-platform::before {
    content: '';
    width: 35px;
    height: 25px;
    border: 2px solid #00ccaa;
    border-radius: 3px;
    position: relative;
    filter: drop-shadow(0 0 5px rgba(0, 204, 170, 0.3));
}

.feature-icon.cross-platform::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    border: 2px solid #00ccaa;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 500;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
}

.feature-card p {
    opacity: 0.7;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #b0b0b0;
}

.scroll-indicator {
    margin-top: 80px;
    animation: subtle-bounce 3s infinite;
}

.scroll-indicator p {
    margin-bottom: 10px;
    opacity: 0.6;
    font-size: 1rem;
    color: #b0b0b0;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    position: relative;
    animation: subtle-float 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #00ccaa;
    transition: all 0.3s ease;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
    background: #00ccaa;
    transition: all 0.3s ease;
}

.scroll-arrow:hover::before,
.scroll-arrow:hover::after {
    border-top-color: #00e6cc;
    background: #00e6cc;
    filter: drop-shadow(0 0 8px rgba(0, 230, 204, 0.5));
}

@keyframes subtle-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.app-section {
    min-height: 100vh;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.settings-container {
    background: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-left: 3px solid #00ccaa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.audio-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 100%);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-left: 3px solid #ff6b35;
    border-radius: 8px;
    padding: 61px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

h2 {
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    
    flex: 1;
    justify-content: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-family: "VCR_OSD_MONO", 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #333 0%, #444 100%);
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid #222;
}

input[type="range"]:hover {
    background: linear-gradient(to right, #444 0%, #555 100%);
    border-color: #00ccaa30;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(145deg, #00ccaa 0%, #009688 100%);
    cursor: pointer;
    border: 1px solid #006b5a;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #00e6cc 0%, #00b8a6 100%);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(0, 204, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(145deg, #00ccaa 0%, #009688 100%);
    cursor: pointer;
    border: 1px solid #006b5a;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #00e6cc 0%, #00b8a6 100%);
}

.value {
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    font-size: 1em;
    font-weight: 500;
    color: #00ccaa;
    text-align: center;
    background: linear-gradient(145deg, #2a2a2a 0%, #333 100%);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #444;
    min-width: 70px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.reset-button {
    margin-top: 30px;
    text-align: center;
}

button {
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    background: linear-gradient(145deg, #2a2a2a 0%, #363636 100%);
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button:hover {
    background: linear-gradient(145deg, #363636 0%, #404040 100%);
    border-color: #00ccaa;
    color: #00ccaa;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(0, 204, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

button:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.settings-container {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.audio-container {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.control-group {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.control-group:nth-child(1) { animation-delay: 0.6s; }
.control-group:nth-child(2) { animation-delay: 0.7s; }
.control-group:nth-child(3) { animation-delay: 0.8s; }
.control-group:nth-child(4) { animation-delay: 0.9s; }


.upload-section {
    text-align: center;
}

.button-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.upload-btn,
.download-btn {
    background: linear-gradient(145deg, #2a2a2a 0%, #363636 100%);
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-btn:hover,
.download-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #363636 0%, #404040 100%);
    border-color: #ff6b35;
    color: #ff6b35;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.download-btn:disabled {
    background: linear-gradient(145deg, #1a1a1a 0%, #202020 100%);
    color: #666;
    border-color: #333;
    cursor: not-allowed;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upload-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.upload-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 12px;
    border: 1px solid currentColor;
    border-radius: 1px;
    top: 6px;
    left: 2px;
}

.upload-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    top: 2px;
    left: 6px;
    transform: rotate(-45deg);
}

.download-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.download-icon::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 12px;
    border: 1px solid currentColor;
    border-radius: 1px;
    top: 6px;
    left: 2px;
}

.download-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    bottom: 2px;
    left: 6px;
    transform: rotate(45deg);
}

.file-info {
    margin-top: 15px;
    color: #ff6b35;
    font-weight: 500;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.visualizer-section {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #222 100%);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#visualizer {
    width: 100%;
    height: 180px;
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border-radius: 2px;
    border: 1px solid #2a2a2a;
}

.visualizer-placeholder {
    position: absolute;
    color: #666;
    font-size: 1em;
    opacity: 0.6;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.control-btn {
    background: linear-gradient(145deg, #2a2a2a 0%, #363636 100%);
    border: 1px solid #444;
    border-radius: 4px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.control-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #363636 0%, #404040 100%);
    border-color: #00ccaa;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(0, 204, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.play-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.play-icon.play::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid #e0e0e0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
}

.play-icon.pause::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 16px;
    background: #e0e0e0;
    top: 50%;
    left: 35%;
    transform: translateY(-50%);
    box-shadow: 6px 0 0 #e0e0e0;
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.time-controls span {
    color: #b0b0b0;
    font-family: "VCR_OSD_MONO", "Courier New", monospace;
    font-size: 0.9em;
    min-width: 40px;
}

#progressBar {
    flex: 1;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #333 0%, #444 100%);
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid #222;
}

#progressBar::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(145deg, #ff6b35 0%, #e55a2b 100%);
    cursor: pointer;
    border: 1px solid #cc4a1f;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#progressBar::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.volume-control::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    border: 1px solid #b0b0b0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.volume-control::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 14px;
    border: 1px solid #b0b0b0;
    border-left: none;
    border-radius: 0 12px 12px 0;
    left: 29px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.volume-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.volume-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #b0b0b0;
    left: 0;
    top: 6px;
}

.volume-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid #b0b0b0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    left: 6px;
    top: 5px;
}

#volumeSlider {
    width: 80px;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #333 0%, #444 100%);
    outline: none;
    border: 1px solid #222;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(145deg, #00ccaa 0%, #009688 100%);
    cursor: pointer;
    border: 1px solid #006b5a;
}

@media (max-width: 1200px) {
    .app-section {
        grid-template-columns: 1fr;
        grid-gap: 30px;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .app-section {
        padding: 20px 10px;
    }
    
    .settings-container,
    .audio-container {
        padding: 20px;
        border-width: 2px;
    }
    
    .playback-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .time-controls {
        width: 100%;
    }
    
    .main-title {
        font-size: clamp(3rem, 6vw, 6rem);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
