:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #e53935; /* Yuda FM red/purple accent */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #03a9f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-color);
    z-index: 10;
}

.top-bar h1 {
    font-size: 20px;
    font-weight: 600;
}

#menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 24px;
    height: 24px;
}

/* Sidebar Drawer */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.drawer.open {
    left: 0;
}

.drawer-header {
    padding: 24px 16px 16px;
    border-bottom: 1px solid #333;
}

.drawer-header h2 {
    font-size: 20px;
}

.station-list {
    list-style: none;
    padding: 16px;
}

.station-item {
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: background-color 0.2s, color 0.2s;
}

.station-item.active {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: bold;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--surface-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-top: 16px;
}

#station-name {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

/* Visualizer */
.visualizer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    gap: 8px;
    margin-bottom: 40px;
}

.bar {
    width: 16px;
    height: 20px;
    background-color: var(--accent-blue);
    border-radius: 8px;
    transition: height 0.1s ease;
}

.is-playing .bar {
    animation: bounce 0.5s infinite alternate ease-in-out;
    animation-delay: var(--delay);
}

@keyframes bounce {
    0% { height: 20px; }
    100% { height: 80px; }
}

#track-name {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    min-height: 24px;
}

/* Play Button */
.play-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background-color: #4CAF50;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
}

.play-btn:active {
    transform: scale(0.95);
}

.is-playing .play-btn {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}
