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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.station-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.station-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.station-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.station-tagline {
    color: #666;
    font-weight: 500;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Current Song Section */
.current-song-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-song-card {
    display: flex;
    align-items: center;
    gap: 24px;
}

.song-artwork {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.equalizer {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 2px;
    align-items: end;
}

.equalizer .bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: equalizer 1.5s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.equalizer .bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.equalizer .bar:nth-child(3) { height: 6px; animation-delay: 0.4s; }
.equalizer .bar:nth-child(4) { height: 10px; animation-delay: 0.6s; }

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

.song-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Player Controls */
.player-controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.control-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.play-btn {
    width: 72px;
    height: 72px;
    font-size: 28px;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.volume-control {
    display: flex;
    justify-content: center;
}

.volume-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #e0e6ed;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Songs Section */
.songs-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.songs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #667eea;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.song-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

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

.song-item-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.song-item-artist {
    color: #7f8c8d;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item-time {
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Loading Animation */
.loading-bar {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 8px;
}

.loading-bar.short {
    width: 60%;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px 32px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes equalizer {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

@keyframes loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .station-name {
        font-size: 2rem;
    }
    
    .current-song-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .song-artwork {
        width: 100px;
        height: 100px;
    }
    
    .song-title {
        font-size: 1.5rem;
    }
    
    .song-artist {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .songs-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .control-buttons {
        gap: 12px;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .play-btn {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .volume-slider {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .current-song-section,
    .player-controls,
    .songs-section {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .song-item {
        padding: 12px;
    }
}

/* Name + Live nebeneinander */

.name-row {

  display: inline-flex;

  align-items: center;

  gap: 10px;

}

.station-details .live-indicator {

  display: flex;

  align-items: center;

  background-color: #e50914;

  color: #fff;

  padding: 4px 10px;

  border-radius: 9999px;

  font-size: 0.8rem;

  font-weight: bold;

}

.station-details .live-dot {

  width: 6px;

  height: 6px;

  background-color: #fff;

  border-radius: 50%;

  margin-right: 6px;

  animation: pulse 1.5s infinite;

}

@keyframes pulse {

  0% { opacity: 1; transform: scale(1); }

  50% { opacity: 0.5; transform: scale(1.3); }

  100% { opacity: 1; transform: scale(1); }

}