@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Playfair+Display:ital,wght@0,600;0,800;1,400;1,600&family=Josefin+Sans:wght@400;600;700&family=Noto+Serif+JP:wght@400;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================================================
   Kamos World Radio - Vintage Vacuum Tube Radio & Antique World Map
   ========================================================================== */

:root {
    --wood-dark: #20120b;
    --wood-mid: #3d2214;
    --wood-light: #5a341e;
    --brass-dark: #7a5c24;
    --brass-mid: #c5a059;
    --brass-light: #f5e8b8;
    --amber-glow: #ff9d3b;
    --tube-filament: #ffb86c;
    --magic-eye-green: #39ff14;
    --magic-eye-glow: rgba(57, 255, 20, 0.6);

    --font-antique: 'Cinzel', 'Playfair Display', 'Noto Serif JP', serif;
    --font-serif-jp: 'Noto Serif JP', 'Playfair Display', serif;
    --font-artdeco: 'Josefin Sans', sans-serif;
    --font-telemetry: 'Space Mono', monospace;
}

.font-antique {
    font-family: var(--font-antique);
}

.font-serif-jp {
    font-family: var(--font-serif-jp);
}

.font-artdeco {
    font-family: var(--font-artdeco);
    letter-spacing: 0.12em;
}

.font-telemetry {
    font-family: var(--font-telemetry);
}

.radio-gold-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #fff3d6 0%, #ffd080 45%, #c5973d 85%, #8a5a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 20px rgba(255, 180, 50, 0.25);
}

/* Wood Cabinet Chassis */
.tube-cabinet {
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, rgba(210, 140, 90, 0.25) 0%, transparent 70%),
        linear-gradient(to bottom, #4a2818 0%, #2b1810 55%, #160c07 100%);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        inset 0 -4px 10px rgba(0, 0, 0, 0.8),
        inset 3px 0 6px rgba(255, 255, 255, 0.08),
        inset -3px 0 6px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    border: 3px solid #140a05;
    position: relative;
}

/* Wood Cabinet Inner Bezel */
.cabinet-bezel {
    border-radius: 18px;
    background: #170d08;
    box-shadow: 
        inset 0 4px 14px rgba(0, 0, 0, 0.95),
        0 1px 2px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

/* Woven Speaker Grille Cloth */
.grille-cloth {
    background-color: #1a100a;
    background-image: 
        radial-gradient(rgba(197, 160, 89, 0.18) 15%, transparent 16%),
        radial-gradient(rgba(138, 106, 42, 0.18) 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
    border: 2px solid #2d1a10;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

/* Brass Rivets */
.brass-rivet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--brass-light) 0%, var(--brass-mid) 50%, var(--brass-dark) 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.4);
    position: relative;
}
.brass-rivet::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 15%;
    width: 70%;
    height: 1.5px;
    background: #4a3610;
    transform: rotate(45deg);
}

/* Vacuum Tube Chamber */
.tube-chamber {
    background: radial-gradient(circle at 50% 120%, rgba(255, 120, 30, 0.18) 0%, #0c0502 85%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 16px;
    box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.95);
    position: relative;
    overflow: hidden;
}

/* Individual Vacuum Tube */
.tube-glass {
    width: 52px;
    height: 95px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(0, 0, 0, 0.45) 100%);
    border-radius: 26px 26px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    box-shadow: 
        0 0 15px rgba(255, 120, 0, 0.08),
        inset 0 0 12px rgba(255, 160, 50, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tube-glass.is-active {
    box-shadow: 
        0 0 35px rgba(255, 130, 0, 0.6),
        0 0 60px rgba(255, 80, 0, 0.35),
        inset 0 0 25px rgba(255, 180, 60, 0.5);
    border-color: rgba(255, 215, 160, 0.7);
}

.tube-filament {
    width: 12px;
    height: 36px;
    position: relative;
    margin-bottom: 10px;
}

.tube-filament::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1px;
    width: 10px;
    height: 25px;
    border: 2px solid #553311;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.tube-glass.is-active .tube-filament::before {
    border-color: #ffe6a3;
    box-shadow: 
        0 0 12px #ff7b00,
        0 0 24px #ff4500;
    animation: filament-pulse 2.5s infinite alternate ease-in-out;
}

.tube-glow-halo {
    position: absolute;
    bottom: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 160, 0, 0.85) 0%, rgba(255, 60, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(4px);
    pointer-events: none;
}

.tube-glass.is-active .tube-glow-halo {
    opacity: 1;
    animation: halo-breathe 2s infinite alternate ease-in-out;
}

@keyframes filament-pulse {
    0% { filter: drop-shadow(0 0 6px #ff7700) brightness(1.1); }
    50% { filter: drop-shadow(0 0 14px #ffaa00) brightness(1.4); }
    100% { filter: drop-shadow(0 0 8px #ff5500) brightness(1.2); }
}

@keyframes halo-breathe {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.25); opacity: 1; }
}

/* Magic Eye (6E5 Tuning Indicator) */
.magic-eye-container {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #080c06;
    border: 3px solid #2d2417;
    box-shadow: 
        inset 0 0 15px #000,
        0 2px 6px rgba(0,0,0,0.85);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.magic-eye-display {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #091a07 30%, #030802 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
}

.magic-eye-beam {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--magic-eye-green) 0deg,
        var(--magic-eye-green) 120deg,
        rgba(10, 40, 10, 0.3) 140deg,
        transparent 180deg,
        rgba(10, 40, 10, 0.3) 220deg,
        var(--magic-eye-green) 240deg,
        var(--magic-eye-green) 360deg
    );
    opacity: 0.15;
    filter: blur(1.5px);
    transition: all 0.3s ease;
}

.magic-eye-container.is-active .magic-eye-beam {
    opacity: 0.95;
    box-shadow: 0 0 16px var(--magic-eye-glow);
    animation: magic-eye-flutter 3s infinite alternate ease-in-out;
}

.magic-eye-center {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #222 0%, #000 100%);
    border: 1px solid #111;
    z-index: 2;
}

@keyframes magic-eye-flutter {
    0% { transform: rotate(0deg) scale(0.98); }
    50% { transform: rotate(4deg) scale(1.03); }
    100% { transform: rotate(-3deg) scale(1); }
}

/* Frequency Tuning Scale */
.tuning-scale {
    background: linear-gradient(180deg, #0e0703 0%, #1c0f06 50%, #0a0402 100%);
    border: 2px solid rgba(197, 160, 89, 0.45);
    border-radius: 12px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.95),
        0 2px 8px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow: hidden;
}

.tuning-scale-backlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 170, 60, 0.3) 0%, transparent 80%);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.tuning-scale.is-active .tuning-scale-backlight {
    opacity: 1;
}

.tuning-needle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff3b30 0%, #ff7755 50%, #ff3b30 100%);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.9);
    z-index: 10;
    left: 35%;
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.tuning-needle-tip {
    position: absolute;
    top: -3px;
    left: -4px;
    width: 10px;
    height: 6px;
    background: #ff3b30;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Rotary Brass Knob */
.brass-knob {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 35% 35%, var(--brass-light) 0%, var(--brass-mid) 45%, var(--brass-dark) 85%, #38260b 100%);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.75),
        inset 0 2px 3px rgba(255, 255, 255, 0.6),
        inset 0 -3px 6px rgba(0, 0, 0, 0.85);
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brass-knob:hover {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.85),
        0 0 14px rgba(243, 229, 171, 0.4);
}

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

.brass-knob-indicator {
    position: absolute;
    top: 5px;
    width: 3px;
    height: 11px;
    background: #20120b;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

/* Push Buttons */
.bakelite-btn {
    background: linear-gradient(180deg, #3d2417 0%, #1e1008 100%);
    border: 1px solid #5a3622;
    border-bottom: 3px solid #0f0805;
    border-radius: 6px;
    color: #e5d3b3;
    text-shadow: 0 -1px 1px #000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    transition: all 0.15s ease;
}

.bakelite-btn:hover {
    background: linear-gradient(180deg, #4d2f1f 0%, #2b1910 100%);
    color: #fff;
    border-color: #784930;
}

.bakelite-btn:active, .bakelite-btn.is-active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    background: linear-gradient(180deg, #1a0e07 0%, #2d1b11 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.85);
    color: var(--amber-glow);
    border-color: var(--brass-mid);
}

/* Vintage Brass Badge */
.brass-badge {
    background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass-mid) 50%, var(--brass-dark) 100%);
    color: #170e06;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.6),
        inset 0 1px 1px rgba(255,255,255,0.6);
    border: 1px solid #5a4116;
}

/* 3D Globe Stand & Base Container */
.globe-card-panel {
    background: 
        radial-gradient(circle at 50% 30%, rgba(200, 140, 80, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #2a170e 0%, #190d07 100%);
    border: 2px solid rgba(197, 160, 89, 0.35);
    border-radius: 24px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

#mapCanvasContainer, #globeCanvasContainer {
    width: 100%;
    position: relative;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.8);
}

.map-beacon-pin {
    touch-action: manipulation;
}

.map-beacon-pin:focus {
    outline: none;
}

/* Spectrum Visualizer */
.spectrum-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    padding: 2px 6px;
}

.spectrum-bar {
    flex: 1;
    background: linear-gradient(to top, #ff5500 0%, #ff9900 60%, #ffea70 100%);
    border-radius: 2px 2px 0 0;
    height: 3px;
    min-height: 3px;
    transition: height 0.08s ease;
    box-shadow: 0 0 6px rgba(255, 120, 0, 0.4);
}

/* Station Card in Drawer */
.station-card {
    background: rgba(30, 16, 10, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card:hover {
    background: rgba(50, 28, 17, 0.92);
    border-color: rgba(243, 229, 171, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.75);
}

.station-card.is-playing {
    background: linear-gradient(135deg, rgba(85, 45, 22, 0.95) 0%, rgba(42, 21, 11, 0.95) 100%);
    border-color: var(--brass-mid);
    box-shadow: 
        0 0 22px rgba(255, 140, 0, 0.35),
        inset 0 0 12px rgba(255, 180, 50, 0.18);
}
