/* venus-radio-history.css */
.venus-radio-history-container {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.venus-radio-history-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.venus-radio-history-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
}

.song-history {
    margin-bottom: 35px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.song-history h3 {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
    color: #34495e;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.song-history h3:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, #3498db, #9b59b6);
    margin-right: 10px;
    border-radius: 3px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.history-item:hover {
    background-color: #f1f3f5;
    transform: translateX(5px);
}

.history-item .track-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-item .track-info {
    flex-grow: 1;
    min-width: 0;
}

.history-item .track-title {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .track-artist {
    color: #7f8c8d;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .track-time {
    color: #95a5a6;
    font-size: 13px;
    margin-right: 15px;
    min-width: 60px;
    text-align: right;
}

.history-item .play-sample {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.history-item .play-sample:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.history-item .play-sample:active {
    transform: translateY(0);
}

.history-item .play-sample i {
    margin-right: 5px;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading:before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background-color: #fdecea;
    border-radius: 8px;
    font-size: 15px;
}

/* Enhanced Audio Player Styles */
.track-player-container {
    margin-top: 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.audio-controls .stop-sample {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.audio-controls .stop-sample:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.audio-controls .stop-sample:active {
    transform: translateY(0);
}

.audio-controls .sample-info {
    color: #7f8c8d;
    font-size: 14px;
    flex-grow: 1;
}

.audio-controls .sample-info strong {
    color: #2c3e50;
}

.audio-progress-container {
    width: 100%;
    height: 6px;
    background-color: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.audio-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    transition: width 0.1s linear;
}

.sample-cover-art {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
    margin-top: 10px;
    align-self: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#audio-player {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    height: 40px;
    outline: none;
}

/* Smooth update animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-item {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .venus-radio-history-container {
        padding: 15px;
    }
    
    .history-item {
        flex-wrap: wrap;
    }
    
    .history-item .track-time {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }
    
    .history-item .play-sample {
        width: 100%;
        margin-top: 10px;
    }
}