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

:root {
    --primary-color: #3f51b5; /* Indigo */
    --secondary-color: #f0f4f8; /* Light background */
    --text-color: #333;
    --subtle-text: #666;
    --border-color: #e0e0e0;
    --stop-color: #ef5350; /* Red for Stop button */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 480px;
    width: 100%;
    padding: 30px;
}

h1 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 600;
}

.tagline {
    color: var(--subtle-text);
    margin-bottom: 25px;
    font-size: 14px;
}

/* --- Channel List --- */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.channel-card {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.channel-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.channel-card.playing {
    border-color: var(--primary-color);
    background: rgba(63, 81, 181, 0.05);
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.card-genre {
    color: var(--primary-color);
    font-size: 12px;
}

/* --- Player --- */
.player-box {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.player-box.active {
    display: block;
}

.track-info {
    margin-bottom: 15px;
}

.label {
    font-size: 12px;
    color: var(--subtle-text);
    margin-bottom: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stop-btn {
    background: var(--stop-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.stop-btn:hover {
    background: #e53935;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.volume-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #ccc;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.station-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--subtle-text);
}

.loading {
    text-align: center;
    padding: 30px;
    color: var(--subtle-text);
}