/* Custom styles for retro TV effect */
.tv-body {
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 50%, #d4c4a0 100%);
    box-shadow: 
        inset 0 -20px 40px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.3),
        0 5px 15px rgba(0,0,0,0.2);
}

.screen-curve {
    border-radius: 20px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        inset 0 0 60px rgba(0,0,0,0.4);
}

.screen-glare {
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,255,0,0.03) 2px,
        rgba(0,255,0,0.03) 4px
    );
    animation: scanline-move 1s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0%); }
}

.knob {
    background: radial-gradient(circle at 30% 30%, #666 0%, #333 70%, #111 100%);
    box-shadow: 
        inset 0 0 10px rgba(255,255,255,0.2),
        0 3px 6px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.knob:active {
    transform: scale(0.95);
}

.pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Phosphor glow effect */
.text-green-400 {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}

/* CRT curve simulation */
.screen-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Vintage button styling */
input[type="range"] {
    -webkit-appearance: none;
    background: #333;
    border-radius: 5px;
    height: 6px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #888;
    cursor: pointer;
    border: 2px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #888;
    cursor: pointer;
    border: 2px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tv-body {
        padding: 4rem 2rem 2rem 2rem;
    }
    
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .screen-curve {
        margin-bottom: 2rem;
    }
}