@import url('https://fonts.googleapis.com/css2?family=VT323&family=Rye&display=swap');

body {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #e6d5b8;
}

.radio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

.radio-body {
    width: 800px;
    height: 450px;
    background: linear-gradient(to bottom, #5c3a21, #3b2210, #241307);
    border-radius: 40px 40px 10px 10px;
    display: flex;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 
        inset 0 10px 20px rgba(255,255,255,0.1),
        inset 0 -10px 20px rgba(0,0,0,0.5),
        0 0 0 5px #1a0f07,
        0 0 0 10px #4d301b;
    position: relative;
    overflow: hidden;
}

/* Wood Grain Overlay */
.radio-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Speaker Grill */
.speaker-grill {
    flex: 1 1 50%;
    max-width: 50%;
    background: #1c1109;
    border-radius: 20px;
    border: 4px solid #b8860b; /* Vintage Gold */
    box-shadow: inset 0 0 30px #000;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.speaker-mesh {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, #000 30%, transparent 31%) 0 0,
        radial-gradient(circle, #000 30%, transparent 31%) 8px 8px;
    background-size: 16px 16px;
    background-color: #3b2512;
    opacity: 0.8;
}

.speaker-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* Adjust size as needed */
    height: auto;
    z-index: 5;
    opacity: 0.9;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.8));
}

.file-screen {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border: 2px solid #3b2512;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'VT323', monospace;
    color: #33ff33;
    font-size: 18px;
    text-shadow: 0 0 5px #33ff33;
    z-index: 10;
    box-shadow: inset 0 0 5px #000;
    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.file-screen.top {
    bottom: auto;
    top: 10px;
    color: #ff3333; /* Make it red to distinguish from the bottom screen */
    text-shadow: 0 0 5px #ff3333;
}

/* Right Side Panel */
.radio-panel {
    flex: 1 1 50%;
    max-width: 50%;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    min-width: 0; /* Prevent content from stretching flex item */
}

/* Screen Frame */
.screen-frame {
    width: 100%;
    height: 200px;
    background: #000;
    border: 4px solid #b8860b;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px #000;
}

.screen-glass {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 10;
}

#photo-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(40%) contrast(1.1); /* Vintage photo feel */
    transition: opacity 1s ease-in-out;
}

/* Controls Area */
.controls-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

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

.knob {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e6e6e6, #808080 60%, #333 100%);
    box-shadow: 
        0 5px 10px rgba(0,0,0,0.5),
        inset 0 2px 5px rgba(255,255,255,0.8);
    position: relative;
    transition: transform 0.3s;
}

.knob:active {
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transform: translateY(2px);
}

.knob.small {
    width: 40px;
    height: 40px;
}

.knob.large {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #fff, #b8860b 60%, #5c4305 100%);
}

.knob-indicator {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: #333;
    border-radius: 2px;
}

.knob-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #333, #000);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b8860b; /* Vintage Gold */
    font-size: 16px;
    text-shadow: 0 2px 2px #000;
}

.knob-label {
    margin-top: 10px;
    font-family: 'Rye', cursive;
    color: #d4af37;
    font-size: 14px;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 1px;
}

/* Text Strip (Marquee) */
.text-strip {
    width: 100%;
    height: 40px;
    background: #111;
    border: 3px solid #b8860b;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 10px #000;
}

.text-content {
    white-space: nowrap;
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #ffb732; /* Glowing vintage orange */
    text-shadow: 0 0 5px #ffb732, 0 0 10px #ffb732;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200%); }
}

/* Radio Feet */
.radio-feet {
    display: flex;
    justify-content: space-between;
    width: 700px;
    margin-top: -5px;
}

.foot {
    width: 40px;
    height: 20px;
    background: #1a0f07;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

/* Multimedia Controls */
.multimedia-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #5c3a21;
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.progress-container, .volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container span {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #ffb732;
    min-width: 45px;
    text-align: center;
}

.vol-icon {
    font-size: 14px;
    color: #d4af37;
}

/* Range Inputs Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e6e6e6, #b8860b 80%);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #111;
    border-radius: 2px;
    border: 1px solid #333;
}
