/* OWF Recent Tracks Widget Styles v6.0 */

#owf-recent-tracks-widget {
    background: linear-gradient(135deg, rgba(74, 143, 168, 0.1) 0%, rgba(107, 163, 189, 0.05) 100%);
    border: 2px solid #4a8fa8;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(74, 143, 168, 0.3);
}

.owf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a8fa8;
    padding-bottom: 10px;
}

.owf-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #6ba3bd;
    letter-spacing: 2px;
}

.owf-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.owf-status-light {
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #00ff00;
}

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

.owf-status-text {
    font-size: 12px;
    color: #6ba3bd;
    font-weight: bold;
}

.owf-track-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.owf-album-art-container {
    flex-shrink: 0;
}

.owf-album-art-container img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #4a8fa8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.owf-track-info {
    flex-grow: 1;
    min-width: 0;
}

.owf-track-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owf-track-artist {
    font-size: 14px;
    color: #6ba3bd;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owf-progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(74, 143, 168, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.owf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a8fa8 0%, #6ba3bd 100%);
    width: 0%;
    transition: width 1s linear;
    border-radius: 4px;
}

.owf-track-time {
    font-size: 11px;
    color: #6ba3bd;
}

.owf-play-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a8fa8 0%, #6ba3bd 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.owf-play-btn:hover {
    background: linear-gradient(135deg, #6ba3bd 0%, #4a8fa8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 168, 0.4);
}

.owf-tagline {
    text-align: center;
    font-size: 11px;
    color: #6ba3bd;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(74, 143, 168, 0.3);
}

/* Popup Player Styles */
#owf-popup-player {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 600px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(40, 40, 40, 0.98) 100%);
    border: 3px solid #4a8fa8;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    padding: 25px;
    overflow-y: auto;
}

#owf-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.owf-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a8fa8;
}

.owf-popup-header h2 {
    margin: 0;
    font-size: 22px;
    color: #6ba3bd;
    letter-spacing: 2px;
}

#owf-close-popup {
    background: #4a8fa8;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#owf-close-popup:hover {
    background: #6ba3bd;
    transform: scale(1.05);
}

.owf-popup-now-playing {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 143, 168, 0.1);
    border-radius: 8px;
    border: 1px solid #4a8fa8;
}

.owf-popup-album-art img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #4a8fa8;
}

.owf-popup-track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.owf-popup-track-details .owf-track-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.owf-popup-track-details .owf-track-artist {
    font-size: 16px;
    margin-bottom: 15px;
}

#owf-stop-stream {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-top: 15px;
}

#owf-stop-stream:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    transform: translateY(-2px);
}

.owf-recent-header {
    font-size: 16px;
    color: #6ba3bd;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 143, 168, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
}

.owf-popup-recent-track {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(74, 143, 168, 0.05);
    border-radius: 6px;
    border-left: 3px solid #4a8fa8;
}

.owf-popup-recent-track .owf-track-title {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.owf-popup-recent-track .owf-track-artist {
    font-size: 13px;
    color: #6ba3bd;
}


.owf-logo-mode img,
img.owf-logo-image {
    object-fit: contain !important;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    box-sizing: border-box;
}

.owf-main-recent-list {
    margin-top: 0;
}

.owf-main-recent-list .owf-popup-recent-track {
    margin-bottom: 10px;
}

.owf-empty-state {
    color: #c7d7e0;
}
