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

body {
    background: #0d0d1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'VT323', monospace;
    overflow: hidden;
    color: #fff;
}

.room {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0d0d1a 70%);
    transition: background 1s ease;
}

.room.magical-glow {
    background: radial-gradient(ellipse at center, #2a1a2e 0%, #1a0d1a 40%, #0d0d1a 70%);
}

.tv-unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.85);
}

@media (max-width: 900px) {
    .tv-unit { transform: scale(0.55); }
}
@media (max-width: 600px) {
    .tv-unit { transform: scale(0.4); }
}

.tv-top-shelf {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 10;
}

.antenna-assembly {
    display: flex;
    align-items: flex-end;
    gap: 0;
    position: relative;
}

.antenna-base {
    width: 40px;
    height: 15px;
    background: linear-gradient(to bottom, #888, #555);
    border-radius: 3px 3px 0 0;
}

.antenna-rod {
    width: 3px;
    height: 70px;
    background: linear-gradient(to top, #999, #ccc, #999);
    border-radius: 2px;
    transform-origin: bottom center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.antenna-rod.left {
    transform: rotate(-30deg);
    margin-right: -2px;
}

.antenna-rod.right {
    transform: rotate(30deg);
    margin-left: -2px;
}

.antenna-rod::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 7px;
    height: 7px;
    background: #bbb;
    border-radius: 50%;
}

.tv-body {
    position: relative;
    width: 860px;
    height: 580px;
    background: linear-gradient(160deg, #7a6244 0%, #5c4a35 30%, #4a3a28 60%, #3d3020 100%);
    border-radius: 18px;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.9),
        0 5px 15px rgba(0,0,0,0.5),
        inset 0 1px 3px rgba(255,255,255,0.08);
    overflow: visible;
}

.wood-grain {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0.12;
    background: 
        repeating-linear-gradient(87deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 3px),
        repeating-linear-gradient(93deg, transparent, transparent 5px, rgba(139,99,50,0.1) 5px, rgba(139,99,50,0.1) 6px);
    pointer-events: none;
}

.brand-label {
    position: absolute;
    top: 12px;
    left: 50px;
    color: #c4a87a;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.cable-ready-sticker {
    position: absolute;
    bottom: 65px;
    left: 50px;
    color: #998866;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.5;
    font-family: Arial, sans-serif;
    transform: rotate(-1deg);
}

.screen-section {
    position: absolute;
    top: 35px;
    left: 30px;
    display: flex;
    gap: 0;
}

.screen-bezel {
    width: 575px;
    height: 445px;
    background: #0a0a0a;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 
        inset 0 0 40px rgba(0,0,0,0.95),
        inset 0 0 10px rgba(0,0,0,0.5),
        0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
}

.screen-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#crt-screen {
    width: 539px;
    height: 409px;
    border-radius: 12px;
    background: #000;
}

.screen-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.12) 0px,
        rgba(0,0,0,0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 2;
}

.screen-curve {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
    z-index: 3;
}

.screen-glare {
    position: absolute;
    top: 3%;
    left: 5%;
    width: 35%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 4;
    transform: rotate(-15deg);
}

.phosphor-glow {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    box-shadow: 0 0 30px 5px rgba(50,200,50,0.15);
}

.phosphor-glow.on {
    opacity: 1;
}

.phosphor-glow.magical {
    box-shadow: 0 0 40px 8px rgba(200,150,255,0.2);
}

.speaker-grille {
    width: 100px;
    height: 300px;
    margin-top: 70px;
    margin-left: 10px;
    background: linear-gradient(160deg, #4a3a28, #3d3020);
    border-radius: 8px;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
}

.grille-lines {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        #2a2218 0px,
        #2a2218 3px,
        #3a3028 3px,
        #3a3028 8px
    );
    border-radius: 5px;
}

.music-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.music-note {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    animation: floatNote 3s ease-out forwards;
    color: #ffcc66;
}

@keyframes floatNote {
    0% { opacity: 0.8; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-80px) translateX(20px) scale(0.5); }
}

.controls-section {
    position: absolute;
    bottom: 10px;
    left: 30px;
    right: 30px;
}

.channel-display-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 8px;
}

.input-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.input-label {
    font-size: 10px;
    color: #998866;
    letter-spacing: 2px;
}

.input-buttons {
    display: flex;
    gap: 3px;
}

.input-btn {
    background: #2a2218;
    color: #776655;
    border: 1px solid #3a3028;
    padding: 2px 6px;
    font-family: 'VT323', monospace;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
}

.input-btn.active {
    background: #4a3a28;
    color: #ffcc88;
    border-color: #665533;
}

.channel-display {
    background: #0a0800;
    color: #ff6600;
    padding: 4px 16px;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    text-align: center;
    min-width: 90px;
    border: 2px solid #1a1510;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    text-shadow: 0 0 8px rgba(255,100,0,0.5);
    letter-spacing: 4px;
}

.signal-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.signal-label {
    font-size: 10px;
    color: #998866;
    letter-spacing: 2px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.signal-bars .bar {
    width: 6px;
    background: #332200;
    border-radius: 1px;
    transition: background 0.3s, height 0.3s;
}

.signal-bars .bar:nth-child(1) { height: 6px; }
.signal-bars .bar:nth-child(2) { height: 9px; }
.signal-bars .bar:nth-child(3) { height: 12px; }
.signal-bars .bar:nth-child(4) { height: 15px; }
.signal-bars .bar:nth-child(5) { height: 18px; }

.signal-bars .bar.active {
    background: #33cc33;
    box-shadow: 0 0 4px rgba(50,200,50,0.4);
}

.knobs-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding: 5px 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.control-label {
    font-size: 9px;
    color: #887766;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.power-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc3333, #881111);
    border: 3px solid #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.power-button:active {
    transform: scale(0.95);
}

.power-button.on {
    background: radial-gradient(circle at 35% 35%, #44dd44, #228822);
    box-shadow: 0 0 15px rgba(50,200,50,0.4), 0 3px 8px rgba(0,0,0,0.6);
}

.power-symbol {
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.knob {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #aaa, #555, #333);
    border: 3px solid #222;
    cursor: grab;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.3);
}

.knob:active { cursor: grabbing; }

.knob.large {
    width: 52px;
    height: 52px;
}

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

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

.knob-grip {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: repeating-conic-gradient(#666 0deg, #888 5deg, #666 10deg);
}

.park-button {
    width: 52px;
    height: 36px;
    background: linear-gradient(to bottom, #5533aa, #3322aa);
    border: 2px solid #222;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.6);
    transition: all 0.2s;
    gap: 0;
    line-height: 1;
}

.park-button:hover {
    background: linear-gradient(to bottom, #7744cc, #5533bb);
    box-shadow: 0 0 12px rgba(100,50,200,0.4);
}

.park-button:active {
    transform: scale(0.95);
}

.mickey-icon {
    font-size: 12px;
    line-height: 1;
}

.park-button span {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: #ffcc66;
    text-shadow: 0 0 4px rgba(255,200,50,0.5);
}

.tv-feet {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 400px;
}

.foot {
    width: 60px;
    height: 15px;
    background: linear-gradient(to bottom, #3d3020, #2a2018);
    border-radius: 0 0 8px 8px;
}

.dust-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.dust {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,220,0.15);
    border-radius: 50%;
    animation: floatDust linear infinite;
}

@keyframes floatDust {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; }
}

.info-panel {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(10,10,20,0.85);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 300px;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    z-index: 50;
}

@media (max-width: 700px) {
    .info-panel {
        display: none;
    }
}