/* Radio Social Plus - Frontend Styles */

.radio-social-player {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.player-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Player Section */
.player-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-header h2 {
    margin: 0;
    font-size: 24px;
}

.live-badge {
    background: #ff4444;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    animation: pulse 2s infinite;
}

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

.album-cover-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.album-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.playing-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
}

.playing-indicator span {
    width: 4px;
    height: 20px;
    background: #4CAF50;
    border-radius: 2px;
    animation: bounce 0.6s infinite;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.1s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%, 100% { height: 10px; }
    50% { height: 20px; }
}

.song-info {
    text-align: center;
    margin-bottom: 20px;
}

.song-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.song-info p {
    margin: 0;
    opacity: 0.8;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #667eea;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-btn {
    opacity: 0.5;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.vote-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vote-btn.active {
    background: white;
    color: #667eea;
}

.latest-vote-notification {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.notif-album-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.notif-text p {
    margin: 0;
    font-size: 14px;
}

/* Top 5 Section */
.top5-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.top5-section h3 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

.top5-list {
    margin-bottom: 30px;
}

.top5-list h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
}

.top5-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top5-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.top5-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rank {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.top5-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

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

.top5-info p {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top5-info .title {
    font-weight: bold;
    margin-bottom: 2px;
}

.top5-info .artist {
    opacity: 0.8;
    font-size: 12px;
}

.top5-info .votes {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 2px;
}

.loading {
    text-align: center;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .player-wrapper {
        grid-template-columns: 1fr;
    }

    .player-section,
    .top5-section {
        padding: 20px;
    }

    .player-header h2 {
        font-size: 18px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .vote-btn {
        padding: 10px;
        font-size: 18px;
    }

    .top5-item {
        gap: 8px;
        padding: 8px;
    }

    .top5-cover {
        width: 35px;
        height: 35px;
    }
}
