:root {
    --primary-color: #34656D;
    --primary-dark: #034C53;
    --secondary-color: #F59E0B;
    --dark-color: #1F2937;
    --light-color: #3F4F44;
    --text-dark: #8AB2A6;
    --text-light: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* Main Container */
.radio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.radio-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.radio-logo {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.radio-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.radio-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Main Content Grid */
.radio-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 100px;
}

/* Sidebar */
.radio-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.brand-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.brand-logo {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.brand-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* E-commerce Promotion */
.promo-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.promo-card h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.promo-card p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.promo-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.promo-btn:hover {
    background: white;
    color: var(--primary-color);
}

/* Categories */
.categories-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    background: none;
    border: none;
    padding: 12px 15px;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Favorites */
.favorites-section {
    margin-bottom: 30px;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-item {
    padding: 10px 15px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.favorite-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.empty-favorites {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Main Content */
.radio-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Search */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-icon {
    padding: 10px 15px;
    color: var(--text-light);
}

.search-input {
    border: none;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
    background: transparent;
}

.search-input:focus {
    outline: none;
}

/* Now Playing */
.now-playing {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.album-art {
    flex-shrink: 0;
}

.art-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.station-info {
    flex: 1;
}

.station-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.station-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.player-status {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Player Controls */
.player-controls {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn.large {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
}

.control-btn.play-large {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    background: var(--primary-color);
    color: white;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.1);
}

.control-btn.play-large:hover {
    background: var(--primary-dark);
}

.progress-section {
    margin-bottom: 25px;
}

.time-display {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.volume-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.volume-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Stations Grid */
.stations-section h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.station-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.station-card.playing {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.station-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    margin-right: 10px;
}

.favorite-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 5px;
}

.favorite-btn:hover {
    color: var(--primary-color);
}

.favorite-btn.active {
    color: #EF4444;
}

.station-card.playing .favorite-btn {
    color: rgba(255, 255, 255, 0.7);
}

.station-card.playing .favorite-btn:hover {
    color: white;
}

.station-card.playing .favorite-btn.active {
    color: #FECACA;
}

.station-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.station-location, .station-language {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.station-card.playing .station-location,
.station-card.playing .station-language {
    color: rgba(255, 255, 255, 0.8);
}

.play-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.station-card.playing .play-indicator {
    color: white;
}

.playing-dots {
    display: flex;
    gap: 3px;
}

.playing-dots span {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.playing-dots span:nth-child(1) { animation-delay: -0.32s; }
.playing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
    border: 2px solid var(--primary-color);
    display: none;
    transition: all 0.3s ease;
}

.mini-player.active {
    display: block;
}

.mini-player-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-station-info {
    flex: 1;
}

.mini-station-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.mini-player-status {
    font-size: 0.75rem;
    color: var(--text-light);
}

.mini-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-control-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mini-control-btn:hover {
    background: rgba(139, 92, 246, 0.1);
}

.mini-control-btn.play-btn {
    background: var(--primary-color);
    color: white;
}

.mini-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0.5;
}

.mini-volume i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.mini-volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
}

.mini-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.mini-expand {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px;
    font-size: 0.9rem;
}

/* Dark Theme */
body.dark-theme {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #E5E7EB;
}

body.dark-theme .radio-sidebar,
body.dark-theme .radio-main {
    background: rgba(31, 41, 55, 0.95);
    color: #E5E7EB;
}

body.dark-theme .brand-title {
    color: #F9FAFB;
}

body.dark-theme .brand-subtitle {
    color: #9CA3AF;
}

body.dark-theme .category-btn {
    color: #E5E7EB;
}

body.dark-theme .category-btn:hover {
    background: rgba(139, 92, 246, 0.2);
}

body.dark-theme .favorite-item {
    background: rgba(139, 92, 246, 0.1);
    color: #E5E7EB;
}

body.dark-theme .search-box {
    background: #374151;
}

body.dark-theme .search-input {
    background: #374151;
    color: #E5E7EB;
}

body.dark-theme .search-input::placeholder {
    color: #9CA3AF;
}

body.dark-theme .player-controls {
    background: #374151;
}

body.dark-theme .station-card {
    background: #374151;
    color: #E5E7EB;
}

body.dark-theme .station-location,
body.dark-theme .station-language {
    color: #9CA3AF;
}

body.dark-theme .volume-slider {
    background: #4B5563;
}

body.dark-theme .mini-player {
    background: rgba(31, 41, 55, 0.95);
    color: #E5E7EB;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .radio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .radio-sidebar {
        order: 2;
    }

    .radio-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .radio-container {
        padding: 10px;
    }

    .radio-title {
        font-size: 2rem;
    }

    .radio-tagline {
        font-size: 1rem;
    }

    .now-playing-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .station-name {
        font-size: 1.5rem;
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }

    .control-btn.large {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .control-btn.play-large {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .volume-slider {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .mini-player {
        min-width: 280px;
        right: 10px;
        bottom: 10px;
    }

    .mini-player-content {
        gap: 10px;
    }

    .mini-volume {
        flex: 0.7;
    }
}

/* Animation for playing state */
.playing-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}