/* Early 2000s System Panel Look */
.system-panel {
    background: #c0c0c0; /* Classic Windows Gray */
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 10px;
    margin-bottom: 20px;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

article img:hover {
    animation: glitch 0.2s infinite;
    filter: hue-rotate(90deg) saturate(2);
}
.signal-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    margin-top: 5px;
}
.signal-bar {
    width: 6px;
    background: #444;
    border: 1px solid #000;
}
.bar-active { background: #0f0; box-shadow: 0 0 5px #0f0; }
.dip-switch-bank {
    display: flex;
    gap: 5px;
    justify-content: space-around;
    padding: 5px;
    background: #808080; /* Recessed area */
    border-inner: inset 2px;
    border: 2px inset #fff;
}

.switch {
    display: flex;
    flex-direction: column;
    /* Mobile Responsive Overhaul */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .container {
        grid-template-columns: 1fr; /* Stack sidebar and feed */
        margin: 20px auto;
        padding: 0 10px;
        gap: 15px;
    }

    aside {
        order: 2; /* Move sidebar below the posts */
        width: auto;
        box-shadow: 4px 4px 0px var(--text-black);
    }

    .feed {
        order: 1; /* Keep posts at the top */
    }

    article {
        padding: 20px;
        margin-bottom: 20px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }

    /* Make the Dip Switches easier to tap on mobile */
    .switch input {
        width: 20px;
        height: 20px;
    }
}
    align-items: center;
    font-family: "MS Sans Serif", Geneva, sans-serif;
    font-size: 10px;
}

/* The actual checkbox - keeping it standard for that 'Default' look */
.switch input {
    cursor: pointer;
    margin: 5px 0;
}

.panel-label {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}
.cassette-container {
    position: relative;
    width: 80px;
    height: 50px;
    cursor: pointer;
    margin: 0 auto;
    background: #eee;
    border: 1px solid #000;
}

.cassette-static {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cassette-spinning {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    object-fit: cover;
}

/* Show the GIF only when the 'is-playing' class is added */
.is-playing .cassette-static { display: none; }
.is-playing .cassette-spinning { display: block; }