/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(20, 20, 30, 0.8);
    --bg-card: rgba(30, 30, 50, 0.6);
    --bg-hover: rgba(50, 50, 80, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #8888a0;
    --border-color: rgba(102, 126, 234, 0.3);
    --shadow-color: rgba(102, 126, 234, 0.5);
    --success-color: #48bb78;
    --danger-color: #f56565;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --neon-pink: #ff006e;
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* Animated Background Layers */
.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 110, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    animation: colorShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.app-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(139, 92, 246, 0.1) 60deg, 
            transparent 120deg,
            rgba(0, 212, 255, 0.1) 180deg,
            transparent 240deg,
            rgba(255, 0, 110, 0.1) 300deg,
            transparent 360deg);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes colorShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(255, 0, 110, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 90% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    }
    25% {
        background: 
            radial-gradient(circle at 30% 60%, rgba(0, 212, 255, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 70% 30%, rgba(255, 0, 110, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 90%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 60% 40%, rgba(255, 0, 110, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 10% 60%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    }
    75% {
        background: 
            radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 10% 40%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(255, 0, 110, 0.3) 0%, transparent 50%);
    }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(255, 0, 110, 0.4);
    animation: floatParticle 20s infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Header */
.header {
    background: rgba(20, 20, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem 2rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px var(--shadow-color);
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 500px;
}

#searchInput {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 25px;
    background: rgba(30, 30, 50, 0.7);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#searchInput:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    background: rgba(30, 30, 50, 0.9);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.btn-icon {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.country-list, .favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.country-item, .favorite-item {
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 50, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.country-item::before, .favorite-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #8b5cf6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.country-item:hover, .favorite-item:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateX(5px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 5px 15px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.country-item:hover::before, .favorite-item:hover::before {
    transform: scaleY(1);
}

.country-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.country-item.active::before {
    transform: scaleY(1);
    background: linear-gradient(180deg, #00d4ff 0%, #ff006e 100%);
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

/* Main Panel */
.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.5rem 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -0.55rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.15);
}

.tab.active {
    color: #00d4ff;
    background: rgba(30, 30, 50, 0.6);
}

.tab.active::after {
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Station Grid */
.station-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.station-grid::-webkit-scrollbar {
    width: 8px;
}

.station-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.station-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Station Card */
.station-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.station-card:hover::before {
    left: 100%;
}

.station-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.station-card:hover {
    background: rgba(50, 50, 80, 0.8);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 80px rgba(0, 212, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.6);
}

.station-card:hover::after {
    transform: scaleX(1);
}

.station-card.playing {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.5),
        0 0 100px rgba(0, 212, 255, 0.3),
        inset 0 0 40px rgba(0, 212, 255, 0.1);
    animation: playingGlow 2s ease-in-out infinite;
}

.station-card.playing::after {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.8), rgba(139, 92, 246, 0.8));
    transform: scaleX(1);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes playingGlow {
    0%, 100% { 
        box-shadow: 
            0 0 50px rgba(0, 212, 255, 0.5),
            0 0 100px rgba(0, 212, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 70px rgba(0, 212, 255, 0.7),
            0 0 140px rgba(0, 212, 255, 0.4);
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.station-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.station-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(139, 92, 246, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.station-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.station-card:hover .station-logo {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        0 5px 20px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.station-card:hover .station-logo::after {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.station-card.playing .station-logo {
    animation: logoPulse 1.5s ease-in-out infinite;
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3);
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.station-logo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.station-info {
    flex: 1;
    min-width: 0;
}

.station-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.station-country {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.3rem;
}

.station-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tag:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6) 0%, rgba(139, 92, 246, 0.6) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 5px 15px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3);
    border-color: transparent;
}

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

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Player Bar */
.player-bar {
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.4);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 
        0 -5px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.player-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.8) 0%, 
        rgba(0, 212, 255, 0.8) 50%, 
        rgba(255, 0, 110, 0.8) 100%);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.station-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2);
}

.station-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #00d4ff, #ff006e);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
    filter: blur(10px);
}

.station-icon.playing {
    animation: pulse-playing 1s ease-in-out infinite;
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
}

.station-icon.playing::before {
    opacity: 0.6;
    animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-playing {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 0 25px rgba(0, 212, 255, 0.7), 
            0 0 50px rgba(0, 212, 255, 0.5),
            0 0 75px rgba(139, 92, 246, 0.3);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 
            0 0 35px rgba(0, 212, 255, 0.9), 
            0 0 70px rgba(0, 212, 255, 0.7),
            0 0 100px rgba(139, 92, 246, 0.5);
    }
}

.station-details {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(30, 30, 50, 0.8);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.control-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 5px 20px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.control-btn:hover::before {
    opacity: 0.3;
}

.control-btn.play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    font-size: 1.5rem;
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(0, 212, 255, 0.4);
    position: relative;
    border: none;
}

.control-btn.play-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #00d4ff, #ff006e);
    z-index: -1;
    opacity: 0;
    animation: none;
    filter: blur(8px);
}

.control-btn.play-btn:hover {
    transform: scale(1.2);
    box-shadow: 
        0 8px 30px rgba(139, 92, 246, 0.7),
        0 0 50px rgba(0, 212, 255, 0.5);
}

.control-btn.playing {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 15px rgba(0, 212, 255, 0.6), 
            0 0 40px rgba(0, 212, 255, 0.4); 
    }
    50% { 
        box-shadow: 
            0 4px 25px rgba(0, 212, 255, 0.8), 
            0 0 60px rgba(0, 212, 255, 0.6); 
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(30, 30, 50, 0.8) 0%, rgba(139, 92, 246, 0.4) 100%);
    outline: none;
    cursor: pointer;
    flex: 1;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(139, 92, 246, 0.4);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.9),
        0 0 50px rgba(139, 92, 246, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    cursor: pointer;
    border: none;
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        max-width: 100%;
    }

    .sidebar {
        display: none;
    }

    .main-panel {
        padding: 1rem;
    }

    .station-grid {
        grid-template-columns: 1fr;
    }

    .player-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .player-info {
        width: 100%;
        justify-content: center;
    }

    .volume-control {
        width: 100%;
    }
}

/* Scrollbar for sidebar */
.country-list::-webkit-scrollbar,
.favorites-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track,
.favorites-list::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb,
.favorites-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover,
.favorites-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Favorite Button Animation */
.control-btn.favorited {
    background: var(--danger-color);
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.audio-visualizer.playing {
    opacity: 1;
}

.audio-visualizer .bar {
    width: 4px;
    height: 10px;
    background: linear-gradient(180deg, #00d4ff 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.audio-visualizer.playing .bar {
    animation: equalize 0.8s ease-in-out infinite;
}

.audio-visualizer .bar:nth-child(1) { animation-delay: 0s; }
.audio-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalize {
    0%, 100% { height: 10px; }
    50% { height: 35px; }
}

/* Floating Particles Effect */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Glow Text Effect */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #ff006e 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite, gradientShift 5s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.9));
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
