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

body {
    background-color: #CCFF00;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 20px,
        transparent 20px,
        transparent 40px
    );
    background-size: 56px 56px;
    animation: moveStripes 2s linear infinite;
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #000;
    overflow: hidden;
}

body::before {
    content: "$RHADIO";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 16vw;
    color: rgba(0, 0, 0, 0.15); /* Dibuat lebih jelas */
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 10px 10px 0 rgba(255, 255, 255, 0.3);
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 56px 56px; }
}

/* Typography specifics */
h1, h2 {
    margin-bottom: 15px;
    line-height: 1.4;
}

p, li {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
    text-align: left;
}

/* Radio Layout */
.radio-container {
    position: relative;
    transform: scale(1.1);
}

.antenna {
    width: 8px;
    height: 150px;
    background-color: #c0c0c0;
    border: 3px solid #000;
    position: absolute;
    top: -140px;
    left: 40px;
    z-index: 1;
}
.antenna::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -6px;
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border: 3px solid #000;
    border-radius: 50%;
}

.handle {
    width: 200px;
    height: 50px;
    border: 6px solid #000;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.radio-body {
    width: 600px;
    background-color: #ff5722; /* Retro orange */
    border: 6px solid #000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 10px 10px 0 #000; /* Pixel shadow */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-header {
    text-align: center;
    background: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 3px solid #000;
}
.radio-header h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}

.radio-main {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.speaker-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 0;
}

.round-speaker {
    width: 140px;
    height: 140px;
    background-color: #222;
    border: 6px solid #000;
    border-radius: 50%;
    box-shadow: inset 5px 5px 0 rgba(0,0,0,0.5), 5px 5px 0 #000;
    position: relative;
    overflow: hidden;
}

/* Motif Jaring-jaring (Mesh) */
.round-speaker::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000), 
        linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000);
    background-color: #333;
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.8;
}

/* Bulatan tengah speaker (Cone) */
.round-speaker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #111;
    border: 4px solid #000;
    border-radius: 50%;
    box-shadow: 2px 2px 0 rgba(255,255,255,0.1);
}

.screen-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screen {
    flex: 1;
    background-color: #9bbc0f; /* Gameboy green */
    border: 6px solid #000;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 5px 5px 0 rgba(0,0,0,0.2);
    min-height: 180px;
    overflow-y: auto;
    position: relative;
}

/* Scanline effect on screen */
.screen::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.content-panel {
    display: none;
    animation: fadeIn 0.3s;
    position: relative;
    z-index: 3;
    color: #0f380f; /* Darker green for text */
    text-shadow: 1px 1px 0px rgba(155, 188, 15, 0.8);
}

.active-panel {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pixel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    line-height: 1.4;
    padding: 12px 5px;
    background-color: #e0e0e0;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    text-align: center;
    transition: all 0.1s;
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

.music-btn {
    grid-column: span 2;
    background-color: #e91e63;
    color: white;
}

.radio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ff9800; /* Lighter orange accent */
    padding: 15px;
    border: 4px solid #000;
    border-radius: 8px;
}

.ca-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 12px;
    border: 4px solid #000;
}

.ca-text {
    font-size: 12px;
}

.copy-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background-color: #2196f3;
    color: white;
    border: 3px solid #000;
    padding: 8px 10px;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.1s;
}

.copy-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #000;
}

.volume-knob {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 4px solid #000;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 3px 0 #000;
}

.knob {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.knob-indicator {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0f380f;
    transition: transform 0.2s;
}
.social-logo:hover {
    transform: scale(1.1);
}

.x-logo {
    font-family: sans-serif;
    font-size: 34px; /* match SVG height roughly */
    font-weight: bold;
}

/* Scrollbar styling for the screen */
.screen::-webkit-scrollbar {
    width: 8px;
}
.screen::-webkit-scrollbar-track {
    background: #8bac0f; 
    border-left: 2px solid #0f380f;
}
.screen::-webkit-scrollbar-thumb {
    background: #0f380f; 
}

.pixel-input {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    width: 100%;
}

/* Audio Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 60px;
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.bar {
    width: 8px;
    background-color: #9bbc0f;
    animation: bounce 0.5s infinite alternate;
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.3s; }
.bar:nth-child(3) { animation-delay: 0.0s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.2s; }
.bar:nth-child(6) { animation-delay: 0.5s; }
.bar:nth-child(7) { animation-delay: 0.1s; }
.bar:nth-child(8) { animation-delay: 0.6s; }
.bar:nth-child(9) { animation-delay: 0.3s; }
.bar:nth-child(10) { animation-delay: 0.2s; }
.bar:nth-child(11) { animation-delay: 0.7s; }
.bar:nth-child(12) { animation-delay: 0.4s; }

@keyframes bounce {
    0% { height: 10%; }
    100% { height: 100%; }
}

/* MOBILE RESPONSIVE SCALING (PERFECT FIT) */
@media (max-width: 700px) {
    .radio-container {
        transform: scale(0.9);
    }
}
@media (max-width: 600px) {
    .radio-container {
        transform: scale(calc(100vw / 650));
    }
}
@media (max-width: 450px) {
    .radio-container {
        transform: scale(calc(100vw / 650));
    }
}
@media (max-width: 350px) {
    .radio-container {
        transform: scale(calc(100vw / 650));
    }
}
