body {
    margin: 0;
    background: #000;
    color: #0f0;
    font-family: Arial, sans-serif;
    -webkit-text-size-adjust: none;
}

/* iOS-safe full height */
html, body {
    height: 100%;
}

/* SPEED BOX */
#speed {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 32px;
    background: rgba(0,0,0,0.7);
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #0f0;
    z-index: 9000;
}

/* MAP FIX for iOS */
#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* SCREENS */
.screen {
    display: none;
    width: 100%;
    height: calc(100% - 120px); /* safer than 100vh */
    padding-top: 40px;
    text-align: center;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen.active {
    display: block;
}

/* BOTTOM CONTROLS */
#controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #111;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 2px solid #333;
    z-index: 8000;
}

.big-btn {
    background: #222;
    color: #0f0;
    border: 2px solid #0f0;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 10px;
    width: 22%;
    text-align: center;
}

.big-btn:active {
    background: #0f0;
    color: #000;
}

/* DEBUG PANEL */
#debug {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    background: rgba(0,0,0,0.8);
    color: #0f0;
    padding: 10px;
    font-size: 12px;
    border-left: 2px solid #0f0;
    border-bottom: 2px solid #0f0;
    z-index: 9999;
}

#debug h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-align: center;
}

#debug pre {
    white-space: pre-wrap;
}

/* RADIO UI */
#tuner {
    width: 90%;
    margin: 20px auto;
    height: 80px;
    background: #111;
    border: 2px solid #0f0;
    border-radius: 10px;
    position: relative;
}

#scale {
    position: absolute;
    top: 35px;
    left: 10px;
    right: 10px;
    height: 10px;
    background: #333;
}

#indicator {
    width: 4px;
    height: 40px;
    background: #0f0;
    position: absolute;
    top: -15px;
    left: 0;
}

#radio-info {
    margin-top: 20px;
    font-size: 28px;
}

#freqDisplay {
    font-size: 36px;
    margin-bottom: 10px;
}

#stationName {
    font-size: 24px;
    color: #0f0;
}

#radio-display {
    margin-top: 20px;
    text-align: center;
}

#stationLogo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

#songInfo {
    font-size: 22px;
    color: #0f0;
}

#radio-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
