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

:root {
    --lcd-green: #39ff14;
    --lcd-amber: #ffbf00;
    --plastic-dark: #1a1a1a;
    --plastic-gray: #2d2d2d;
    --plastic-light: #404040;
    --chrome: linear-gradient(180deg, #e8e8e8 0%, #a0a0a0 50%, #c0c0c0 100%);
    --bezel: #0d0d0d;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.dashboard {
    width: 100%;
    max-width: 600px;
    transition: all 0.5s ease;
}

.dashboard.starting {
    opacity: 0;
    transform: scale(0.95);
}

.dashboard-container {
    background: linear-gradient(180deg, #252525 0%, #1a1a1a 50%, #151515 100%);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    border: 3px solid #0a0a0a;
}

/* Windshield Section */
.windshield-section {
    margin-bottom: 15px;
}

.windshield-frame {
    background: var(--bezel);
    border-radius: 15px 15px 8px 8px;
    padding: 8px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 2px 0 rgba(255, 255, 255, 0.05);
}

.defrost-lines {
    display: flex;
    gap: 8px;
    padding: 5px 20px;
    justify-content: center;
}

.defrost-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 1px;
}

.windshield-glass {
    background: #00ff00;
    height: 150px;
    border-radius: 8px 8px 5px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.lcd-clock {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(57, 255, 20, 0.3);
}

.lcd-text {
    font-family: 'VT323', monospace;
    font-size: 48px;
    color: var(--lcd-green);
    text-shadow: 
        0 0 10px var(--lcd-green),
        0 0 20px var(--lcd-green),
        0 0 30px rgba(57, 255, 20, 0.5);
    letter-spacing: 4px;
}

/* AC Section */
.ac-section {
    margin-bottom: 15px;
}

.ac-panel {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid var(--bezel);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.vents-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 15px;
}

.ac-vent {
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.vent-outer-ring {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #3a3a3a 100%);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vent-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    gap: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.louver-container {
    position: relative;
    height: 10px;
    display: flex;
    align-items: center;
}

.louver {
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 50%, #4a4a4a 100%);
    border-radius: 2px;
    cursor: ns-resize;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.louver:hover, .louver.dragging {
    background: linear-gradient(180deg, #6a6a6a 0%, #4a4a4a 50%, #5a5a5a 100%);
}

.paper-strip {
    position: absolute;
    right: -15px;
    width: 12px;
    height: 3px;
    background: linear-gradient(90deg, #f5f5f5, #e0e0e0);
    border-radius: 0 2px 2px 0;
    transform-origin: left center;
    animation: flutter calc(0.3s / var(--flutter-intensity, 1)) ease-in-out infinite alternate;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes flutter {
    0% { transform: rotateZ(-5deg) scaleX(1); }
    100% { transform: rotateZ(calc(15deg * var(--flutter-intensity, 1))) scaleX(calc(0.8 + var(--flutter-intensity, 1) * 0.3)); }
}

.temp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.temp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.temp-btn.cold {
    background: linear-gradient(180deg, #4a9eff 0%, #2a6ecc 100%);
}

.temp-btn.hot {
    background: linear-gradient(180deg, #ff6a4a 0%, #cc3a2a 100%);
}

.temp-btn:hover {
    transform: scale(1.1);
}

.temp-btn:active {
    transform: scale(0.95);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.temp-display {
    background: #0a0a0a;
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid #333;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.temp-value {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: var(--lcd-amber);
    text-shadow: 0 0 10px var(--lcd-amber);
}

.temp-unit {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: var(--lcd-amber);
    opacity: 0.7;
}

/* Radio Section */
.radio-section {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.radio-section.powered {
    opacity: 1;
}

.radio-unit {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #151515 100%);
    border-radius: 12px;
    padding: 12px;
    border: 3px solid var(--bezel);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.radio-display {
    background: var(--bezel);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.display-inner {
    background: linear-gradient(180deg, #0a1a0a 0%, #051505 100%);
    border-radius: 5px;
    padding: 12px;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.display-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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;
}

.display-content {
    position: relative;
    z-index: 1;
}

.station-name {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: var(--lcd-green);
    text-shadow: 0 0 8px var(--lcd-green);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-info {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--lcd-green);
    opacity: 0.7;
    margin-top: 4px;
}

.genre-indicator {
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: var(--lcd-amber);
    text-shadow: 0 0 5px var(--lcd-amber);
    margin-top: 6px;
}

.display-off {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #1a2a1a;
    text-align: center;
    padding: 15px;
}

.genre-row-container {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bezel);
    padding: 3px;
}

.genre-row {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genre-row::-webkit-scrollbar {
    display: none;
}

.genre-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.genre-btn:hover:not(.disabled) {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    color: #aaa;
}

.genre-btn.active {
    background: linear-gradient(180deg, #1a3a1a 0%, #0a2a0a 100%);
    border-color: var(--lcd-green);
    color: var(--lcd-green);
    box-shadow: 
        0 0 10px rgba(57, 255, 20, 0.3),
        inset 0 1px 0 rgba(57, 255, 20, 0.2);
}

.genre-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.controls-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.power-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.power-btn:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
}

.power-btn:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #300;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.power-btn.on .power-led {
    background: #ff3333;
    box-shadow: 0 0 8px #ff3333, 0 0 15px rgba(255, 51, 51, 0.5);
}

.power-btn.on {
    color: #aaa;
}

.presets {
    display: flex;
    gap: 3px;
}

.preset-btn {
    width: 24px;
    height: 24px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn.has-station {
    color: var(--lcd-amber);
    border-color: rgba(255, 191, 0, 0.3);
}

.preset-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
}

.preset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.transport-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.transport-btn.play {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 100%);
}

.transport-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 100%);
    color: #aaa;
}

.transport-btn.play:hover:not(:disabled) {
    background: linear-gradient(180deg, #1a4a1a 0%, #0a3a0a 100%);
    color: var(--lcd-green);
    box-shadow: 
        0 0 15px rgba(57, 255, 20, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.transport-btn.playing {
    background: linear-gradient(180deg, #1a4a1a 0%, #0a3a0a 100%);
    color: var(--lcd-green);
    box-shadow: 
        0 0 15px rgba(57, 255, 20, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.transport-btn:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.transport-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.fav-btn:hover:not(:disabled) {
    color: var(--lcd-amber);
}

.fav-btn.saved {
    color: var(--lcd-amber);
    text-shadow: 0 0 8px var(--lcd-amber);
}

.fav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.volume-knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.volume-knob {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 50%, #4a4a4a 100%);
    cursor: grab;
    position: relative;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.05s ease;
}

.volume-knob.dragging {
    cursor: grabbing;
}

.volume-knob::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.knob-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: var(--lcd-amber);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--lcd-amber);
}

.volume-label {
    font-size: 8px;
    color: #666;
    margin-top: 4px;
    letter-spacing: 1px;
}

.volume-value {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--lcd-amber);
    text-shadow: 0 0 5px rgba(255, 191, 0, 0.5);
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 15px 0 5px;
    font-size: 11px;
    color: #444;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.dashboard-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .windshield-glass {
        height: 120px;
    }
    
    .lcd-text {
        font-size: 36px;
    }
    
    .ac-vent {
        width: 65px;
        height: 65px;
    }
    
    .station-name {
        font-size: 18px;
    }
    
    .transport-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .transport-btn.play {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .volume-knob {
        width: 40px;
        height: 40px;
    }
    
    .genre-btn {
        padding: 6px 10px;
        font-size: 9px;
    }
}