/* 復古老收音機外觀（與復古拉門電視同系木紋／金屬）。
   不改電台來源或播放邏輯；覆蓋／補強 app-panels 既有 page1-radio-set。 */

.page1-radio-set--retro {
    --radio-wood: #6b3f24;
    --radio-wood-deep: #3e2414;
    --radio-wood-mid: #8a5533;
    --radio-wood-lite: #a86b42;
    --radio-metal: #c5b48a;
    --radio-metal-shine: #f0e6c8;
    --radio-lamp: #ffd45a;
    --radio-light-x: 32%;
    --radio-light-y: 22%;
    --radio-needle-ms: 0.35s;
}

.page1-radio-set--retro .page1-radio-set__wood {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 14px 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(180deg, var(--radio-wood-lite) 0%, var(--radio-wood) 45%, var(--radio-wood-deep) 100%);
    border: 2px solid #26140b;
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 190, 0.35),
        inset 0 -2px 6px rgba(20, 10, 4, 0.45),
        0 10px 22px rgba(0, 0, 0, 0.4),
        0 2px 0 rgba(255, 220, 170, 0.12);
}

.page1-radio-set--retro .page1-radio-set__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 70% 50% at var(--radio-light-x) var(--radio-light-y),
            rgba(255, 240, 200, 0.28),
            transparent 58%
        );
    mix-blend-mode: soft-light;
    z-index: 0;
}

.page1-radio-set--retro .page1-radio-set__wood > * {
    position: relative;
    z-index: 1;
}

.page1-radio-set--retro .page1-radio-set__handle {
    background: linear-gradient(180deg, var(--radio-metal-shine), #8a7a52 55%, #5a4e32);
    border-color: #8a7a52;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

.page1-radio-set--retro .page1-radio-set__speaker {
    background:
        radial-gradient(circle at 30% 24%, #5a4030, #1a100c 72%);
    box-shadow:
        inset 0 0 0 3px rgba(197, 180, 138, 0.45),
        inset 0 8px 16px rgba(0, 0, 0, 0.55),
        0 4px 0 #2a160c,
        0 6px 10px rgba(0, 0, 0, 0.35);
}

.page1-radio-set--retro .page1-radio-set__grille {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.page1-radio-set--retro.is-on-air .page1-radio-set__grille-cloth {
    transform-origin: 50% 50%;
    animation: page1-radio-grille-throb 1.15s ease-in-out infinite;
}

.page1-radio-set--retro .page1-radio-set__cone {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.page1-radio-set--retro.is-on-air .page1-radio-set__cone {
    filter: drop-shadow(0 0 8px rgba(255, 212, 90, 0.65));
}

.page1-radio-set--retro .page1-radio-set__glass {
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.65),
        inset 0 -1px 0 rgba(255, 220, 170, 0.12),
        0 1px 0 rgba(255, 220, 170, 0.15);
}

.page1-radio-set--retro .page1-radio-set__needle {
    transition: left var(--radio-needle-ms) ease;
    background: linear-gradient(180deg, #ffe08a, #ff5a3c);
    box-shadow: 0 0 8px rgba(255, 180, 60, 0.7);
}

.page1-radio-set--retro .page1-radio-set__lamp {
    color: #3a2808;
    background: linear-gradient(180deg, #c9a24a, #8a6a30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.page1-radio-set--retro.is-on-air .page1-radio-set__lamp,
.page1-radio-set--retro[data-station] .page1-radio-set__lamp:not([hidden]) {
    color: #3a2808;
    background: linear-gradient(180deg, #ffe08a, var(--radio-lamp) 45%, #d4a020);
    box-shadow:
        0 0 14px rgba(255, 200, 80, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.page1-radio-set--retro .page1-radio-set__knob {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    box-shadow: none;
}

.page1-radio-set--retro .page1-radio-set__knob-face {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, var(--radio-metal-shine) 0%, var(--radio-metal) 38%, #8a7a52 72%, #5a4e32 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.55),
        inset 0 -3px 5px rgba(40, 28, 10, 0.55),
        0 2px 0 #2a1c0e,
        0 4px 8px rgba(0, 0, 0, 0.45);
    transition: transform 80ms ease, box-shadow 80ms ease;
    pointer-events: none;
}

.page1-radio-set--retro .page1-radio-set__knob-mark {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 11px;
    margin-left: -1.5px;
    border-radius: 1px;
    background: linear-gradient(180deg, #fff8e0, #6a5a38);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.page1-radio-set--retro .page1-radio-set__knob:active .page1-radio-set__knob-face {
    transform: translateY(2px) scale(0.96);
    box-shadow:
        inset 0 3px 6px rgba(40, 28, 10, 0.65),
        0 1px 0 #2a1c0e,
        0 2px 4px rgba(0, 0, 0, 0.35);
}

.page1-radio-set--retro .page1-radio-set__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: space-between;
}

.page1-radio-set--retro .page1-radio-set__opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 2px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cm-ivory, #f4f6f8);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.page1-radio-set--retro .page1-radio-set__opt input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #8a5533;
}

.page1-radio-set--retro .page1-radio-set__feet i {
    background: linear-gradient(90deg, #5a341c, #8a5533 40%, #3e2414);
    box-shadow:
        inset 1px 0 0 rgba(255, 220, 170, 0.25),
        0 3px 5px rgba(0, 0, 0, 0.4);
}

@keyframes page1-radio-grille-throb {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.018); opacity: 0.92; }
}

.page1-radio-set--retro.is-reduced-motion,
.page1-radio-set--retro.is-reduced-motion .page1-radio-set__needle,
.page1-radio-set--retro.is-reduced-motion .page1-radio-set__knob-face {
    --radio-needle-ms: 1ms;
    transition: none !important;
    animation: none !important;
}

.page1-radio-set--retro.is-reduced-motion .page1-radio-set__grille-cloth,
.page1-radio-set--retro.is-reduced-motion.is-on-air .page1-radio-set__grille-cloth {
    animation: none !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .page1-radio-set--retro {
        --radio-needle-ms: 1ms;
    }

    .page1-radio-set--retro .page1-radio-set__needle,
    .page1-radio-set--retro .page1-radio-set__knob-face {
        transition: none !important;
    }

    .page1-radio-set--retro.is-on-air .page1-radio-set__grille-cloth {
        animation: none !important;
        transform: none !important;
    }
}
