/* Sony-Inspired Ultimate Radio Recorder Styling */
.vintage-font {
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.sony-body {
    box-shadow: 
        inset 0 4px 8px rgba(255,255,255,0.9),
        inset 0 -4px 8px rgba(0,0,0,0.4),
        0 12px 24px rgba(0,0,0,0.3);
    position: relative;
    background: linear-gradient(145deg, #e5e7eb, #d1d5db);
}

.sony-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.2) 50%, transparent 52%);
    pointer-events: none;
    border-radius: inherit;
}

.sony-speaker {
    box-shadow: 
        inset 0 4px 12px rgba(0,0,0,0.9),
        0 2px 6px rgba(255,255,255,0.2);
    background: linear-gradient(145deg, #374151, #1f2937);
}

.sony-display {
    box-shadow: 
        inset 0 4px 12px rgba(0,0,0,0.95),
        0 2px 4px rgba(255,255,255,0.3);
    border: 3px solid #6b7280;
    background: linear-gradient(145deg, #000000, #1a1a1a);
}

.sony-button {
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    border: 2px solid rgba(0,0,0,0.2);
}

.sony-button:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.5);
}

.sony-slider {
    appearance: none;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #374151, #6b7280);
    outline: none;
    box-shadow: 
        inset 0 3px 6px rgba(0,0,0,0.5),
        0 1px 3px rgba(255,255,255,0.5);
    border: 1px solid #4b5563;
}

.sony-slider::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f4f6, #d1d5db);
    cursor: pointer;
    border: 3px solid #6b7280;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.sony-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.4);
}

.sony-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3f4f6, #d1d5db);
    cursor: pointer;
    border: 3px solid #6b7280;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.sony-control-panel {
    box-shadow: 
        inset 0 4px 8px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(0,0,0,0.3),
        0 6px 12px rgba(0,0,0,0.2);
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border: 4px solid #9ca3af;
}

/* VU Meter styling for Sony look */
.vu-meter-bar {
    transition: all 0.1s ease-out;
    border-radius: 1px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Enhanced grid for speaker grilles */
.grid-cols-16 {
    grid-template-columns: repeat(16, minmax(0, 1fr));
}

/* Pulse animation for recording */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 1s infinite;
}

/* Typography improvements */
body {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    font-family: 'Georgia', serif;
    font-weight: 400;
}

/* Enhanced focus states */
input:focus, select:focus {
    outline: none;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Button hover effects */
button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-16 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    
    .sony-button {
        min-width: 48px;
        min-height: 48px;
    }
    
    .sony-slider {
        width: 80px;
    }
    
    .flex-2 {
        flex: 2;
    }
}

@media (max-width: 640px) {
    .grid-cols-16 {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

/* Audio player styling */
audio {
    filter: sepia(10%) saturate(110%) hue-rotate(5deg);
    border-radius: 4px;
}

/* Custom scrollbar for recordings */
.recordings-section {
    max-height: 600px;
    overflow-y: auto;
}

.recordings-section::-webkit-scrollbar {
    width: 8px;
}

.recordings-section::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.recordings-section::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.recordings-section::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Enhanced connection status indicator */
@keyframes connection-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.connection-indicator {
    animation: connection-pulse 2s infinite;
}