@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&amp;family=Special+Elite&amp;display=swap');

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    #000000 0%,
    #ffffff 50%,
    #000000 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2s linear reverse infinite;
}

:root {
    --wood-dark: #2c2419;
    --wood-mid: #3f3326;
    --wood-light: #5c4733;
    --dial-cream: #f4e9d2;
    --dial-shadow: #d4c4a3;
    --needle-red: #b91c1c;
    --metal: #4a4a4a;
    --glow: rgba(255, 200, 80, 0.35);
}

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

html, body {
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    background: linear-gradient(#1a1610, #0f0c08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 40px 20px;
    overflow-x: hidden;
}

.radio-container {
    width: 100%;
    max-width: 680px;
}

.radio {
    width: 100%;
    background: linear-gradient(145deg, var(--wood-dark), var(--wood-mid));
    border-radius: 16px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -2px 8px rgba(0,0,0,0.6);
    border: 12px solid #1f1810;
    padding: 28px 32px 32px;
    position: relative;
}

.radio::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: 
        repeating-linear-gradient(
            85deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.035) 3px,
            rgba(0,0,0,0.035) 5px
        );
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}

.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #d4c4a3;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    user-select: none;
}

.model {
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    color: #8a7a5f;
    letter-spacing: 2px;
    align-self: flex-end;
    margin-bottom: 2px;
}

.dial-window {
    position: relative;
    background: var(--dial-cream);
    border: 5px solid #2c2419;
    border-radius: 6px;
    height: 195px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.35),
        inset 0 4px 8px rgba(0, 0, 0, 0.25),
        0 3px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    margin-bottom: 22px;
    z-index: 2;
}

.dial-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.25) 0%,
            transparent 18%,
            transparent 82%,
            rgba(0,0,0,0.12) 100%
        );
    pointer-events: none;
    z-index: 3;
}

.powered .dial-window {
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.35),
        inset 0 4px 8px rgba(0, 0, 0, 0.25),
        0 0 25px var(--glow),
        0 3px 8px rgba(0,0,0,0.4);
}

.scale-container {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 52%;
    height: 68px;
    z-index: 4;
}

.scale-line {
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3a2f1f, #2c2419, #3a2f1f);
    box-shadow: 0 1px 0 #d4c4a3;
}

.tick {
    position: absolute;
    top: 32px;
    width: 2px;
    height: 14px;
    background: #2c2419;
    transform: translateX(-50%);
    z-index: 5;
}

.tick.major {
    height: 22px;
    top: 29px;
    width: 2.5px;
    background: #1f1810;
}

.freq-label {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #2c2419;
    text-shadow: 0 1px 0 #d4c4a3;
    white-space: nowrap;
    z-index: 6;
    letter-spacing: 0.5px;
}

.needle {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: linear-gradient(to bottom, #9f1a1a, var(--needle-red), #9f1a1a);
    box-shadow: 
        0 0 12px var(--needle-red),
        0 0 22px rgba(185, 28, 28, 0.6);
    border-radius: 2px;
    z-index: 10;
    transform: translateX(-50%);
    transition: left 0.08s cubic-bezier(0.23, 1.0, 0.32, 1);
    pointer-events: none;
}

.needle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid var(--needle-red);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

.needle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #2c2419;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
}

.freq-display {
    position: absolute;
    top: 14px;
    right: 22px;
    background: rgba(30, 24, 18, 0.85);
    color: #d4af77;
    padding: 4px 14px;
    border-radius: 3px;
    font-family: 'Special Elite', monospace;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
    border: 1px solid #4a3f2f;
    z-index: 12;
    min-width: 118px;
    text-align: right;
}

.powered .freq-display {
    color: #f4d9a0;
    text-shadow: 0 0 6px rgba(255, 200, 80, 0.5);
}

.freq-display span {
    font-size: 13px;
    opacity: 0.75;
    margin-left: 4px;
}

.controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}

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

.knob-label {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    color: #8a7a5f;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.knob {
    width: 78px;
    height: 78px;
    background: radial-gradient(circle at 32% 28%, #5f5f5f, #2f2f2f 55%, #1a1a1a);
    border-radius: 50%;
    border: 7px solid #1f1810;
    box-shadow: 
        0 6px 14px rgba(0,0,0,0.6),
        inset 0 0 12px rgba(255,255,255,0.08),
        inset -12px -12px 18px rgba(0,0,0,0.7),
        inset 8px 8px 14px rgba(255,255,255,0.05);
    position: relative;
    cursor: grab;
    transition: box-shadow 0.2s ease;
    user-select: none;
}

.knob:active {
    cursor: grabbing;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.6),
        inset 0 0 12px rgba(255,255,255,0.08),
        inset -8px -8px 14px rgba(0,0,0,0.8);
}

.knob::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 26px;
    background: linear-gradient(to bottom, #c9c9c9, #777);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.volume-knob::after {
    background: linear-gradient(to bottom, #a3a3a3, #555);
}

.band-switch {
    display: flex;
    background: #1f1810;
    border: 3px solid #2c2419;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.band-btn {
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    padding: 8px 22px;
    color: #8a7a5f;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.band-btn.active {
    background: #3f3326;
    color: #d4c4a3;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.presets {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.preset-btn {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    padding: 5px 13px;
    background: #2c2419;
    color: #b8a47a;
    border: 1px solid #4a3f2f;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0;
}

.preset-btn:hover {
    background: #3f3326;
    color: #d4c4a3;
    transform: translateY(-1px);
}

.power-section {
    position: absolute;
    top: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.power-label {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    color: #8a7a5f;
    letter-spacing: 1px;
}

.power-toggle {
    width: 42px;
    height: 22px;
    background: #1f1810;
    border-radius: 999px;
    border: 2px solid #2c2419;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

.power-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #440010;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.power-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    z-index: 2;
}

.power-toggle.on::after {
    left: 22px;
    background: #ff0000;
    box-shadow: 0 0 8px #ff0000;
    z-index: 1;
}
.power-toggle.on::before {
    left: 22px;
    background: radial-gradient(transparent, #ff7777);
}

.footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #665b48;
    font-family: 'Special Elite', monospace;
    letter-spacing: 0.5px;
}

.status {
    position: absolute;
    bottom: 18px;
    left: 32px;
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    color: #665b48;
    letter-spacing: 1px;
}