/* 80s SYNTHWAVE AESTHETIC */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, 
        #0d0221 0%, 
        #150530 20%,
        #1a0a3e 40%, 
        #240046 60%,
        #1a0a3e 80%,
        #0d0221 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #00f0ff;
    background-attachment: fixed;
}

/* Scanline overlay effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, 
        rgba(20, 0, 40, 0.95) 0%,
        rgba(10, 0, 30, 0.98) 100%);
    border: 2px solid;
    border-image: linear-gradient(180deg, #ff00ff, #00f0ff) 1;
    padding: 40px;
    position: relative;
    box-shadow: 
        0 0 60px rgba(255, 0, 255, 0.3),
        0 0 100px rgba(0, 240, 255, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Corner decorations */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #ff00ff;
}
.container::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}
.container::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-weight: 900;
    letter-spacing: 12px;
    font-size: 32px;
    margin-bottom: 5px;
    background: linear-gradient(180deg, #fff 0%, #ff00ff 50%, #ff0080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    color: #00f0ff;
    letter-spacing: 6px;
    margin-bottom: 35px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.control-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 1px solid #660099;
    border-radius: 0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00f0ff 0%, #ff00ff 100%);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 
        0 0 15px rgba(0, 240, 255, 0.8),
        0 0 30px rgba(255, 0, 255, 0.6);
    transform: rotate(45deg);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #00f0ff 0%, #ff00ff 100%);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 
        0 0 15px rgba(0, 240, 255, 0.8),
        0 0 30px rgba(255, 0, 255, 0.6);
    transform: rotate(45deg);
}

.value-display {
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffff00;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    min-width: 100px;
    padding: 16px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

#playBtn {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 100, 50, 0.3) 100%);
    color: #00ff88;
    border-color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

#playBtn:hover {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.4) 0%, rgba(0, 100, 50, 0.5) 100%);
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.6),
        inset 0 0 20px rgba(0, 255, 136, 0.2);
}

#stopBtn {
    background: linear-gradient(180deg, rgba(255, 0, 80, 0.2) 0%, rgba(100, 0, 30, 0.3) 100%);
    color: #ff0050;
    border-color: #ff0050;
    text-shadow: 0 0 10px rgba(255, 0, 80, 0.8);
}

#stopBtn:hover {
    background: linear-gradient(180deg, rgba(255, 0, 80, 0.4) 0%, rgba(100, 0, 30, 0.5) 100%);
    box-shadow: 
        0 0 30px rgba(255, 0, 80, 0.6),
        inset 0 0 20px rgba(255, 0, 80, 0.2);
}

#downloadBtn {
    background: linear-gradient(180deg, rgba(255, 0, 255, 0.2) 0%, rgba(100, 0, 100, 0.3) 100%);
    color: #ff00ff;
    border-color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

#downloadBtn:hover {
    background: linear-gradient(180deg, rgba(255, 0, 255, 0.4) 0%, rgba(100, 0, 100, 0.5) 100%);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.6),
        inset 0 0 20px rgba(255, 0, 255, 0.2);
}

#newBtn {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 80, 100, 0.3) 100%);
    color: #00f0ff;
    border-color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

#newBtn:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.4) 0%, rgba(0, 80, 100, 0.5) 100%);
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.6),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.status {
    text-align: center;
    margin-top: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #00f0ff;
    min-height: 24px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.visualizer {
    height: 100px;
    background: linear-gradient(180deg, #000 0%, #0d0221 50%, #1a0033 100%);
    border: 2px solid #660099;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 255, 0.2),
        0 0 20px rgba(102, 0, 153, 0.5);
}

/* Grid lines for visualizer */
.visualizer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255,0,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(255,0,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

select {
    width: 100%;
    padding: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: linear-gradient(180deg, #1a0033 0%, #0d001a 100%);
    color: #00f0ff;
    border: 2px solid #660099;
    cursor: pointer;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

select:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

select option {
    background: #1a0033;
    color: #00f0ff;
    padding: 10px;
}

select optgroup {
    background: #0d001a;
    color: #ff00ff;
    font-weight: 600;
}

.row {
    display: flex;
    gap: 25px;
}

.row .control-group {
    flex: 1;
}

.section-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ff00ff;
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, transparent, #ff00ff, transparent) 1;
    padding-bottom: 8px;
    margin: 35px 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

/* Arrangement grid */
.arrangement-controls {
    margin-top: 10px;
}

.arrangement-controls .row {
    gap: 15px;
}

.arrangement-controls select {
    padding: 8px 12px;
    font-size: 10px;
}

.arrangement-grid {
    height: 320px;
    background: linear-gradient(180deg, #000 0%, #0d0221 50%, #1a0033 100%);
    border: 2px solid #660099;
    margin-top: 12px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 30px rgba(255, 0, 255, 0.15),
        0 0 15px rgba(102, 0, 153, 0.4);
    cursor: pointer;
}

.arrangement-position {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    button {
        min-width: 80px;
        padding: 12px 10px;
        font-size: 9px;
    }
}
