/* PlayList Plugin Styles */

.playlist-container {
    background: #f0f0f0;
    border: 2px solid #808080;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.playlist-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #808080;
    padding-bottom: 10px;
}

.playlist-header h3 {
    margin: 0 0 10px 0;
    color: #000080;
    font-size: 1.5em;
}

.playlist-header p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.playlist-player {
    margin: 20px 0;
}

.media-player {
    width: 100%;
    background: #333;
    border: 2px inset #808080;
}

.youtube-player,
.odysee-player {
    width: 100%;
    height: 315px;
    border: 2px inset #808080;
}

.playlist-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
}

.control-btn {
    padding: 8px 16px;
    background: #c0c0c0;
    border: 2px outset #808080;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.control-btn:hover {
    background: #d0d0d0;
}

.control-btn:active {
    border-style: inset;
}

.speed-display {
    padding: 8px;
    background: #ffffff;
    border: 2px inset #808080;
    font-family: 'Courier New', monospace;
}

.playlist-metadata {
    background: #ffffff;
    border: 2px inset #808080;
    padding: 15px;
    margin: 15px 0;
    min-height: 60px;
    font-size: 0.9em;
}

.playlist-metadata strong {
    color: #000080;
}

.playlist-tracklist {
    background: #ffffff;
    border: 2px inset #808080;
    padding: 15px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.track-list h4 {
    margin: 0 0 10px 0;
    color: #000080;
}

.track-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-list li {
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.track-list li:last-child {
    border-bottom: none;
}

.track-list a {
    color: #0000ff;
    text-decoration: none;
    display: block;
    padding: 5px;
}

.track-list a:hover {
    background: #e0e0e0;
    text-decoration: underline;
}

.playlist-error {
    background: #ffcccc;
    border: 2px solid #cc0000;
    padding: 10px;
    margin: 15px 0;
    color: #cc0000;
    display: none;
}

.playlist-error:empty {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .playlist-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-btn {
        width: 100%;
    }

    .youtube-player,
    .odysee-player {
        height: 200px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .playlist-container {
        background: #1a1a1a;
        border-color: #444;
    }

    .playlist-header {
        border-color: #444;
    }

    .playlist-header h3 {
        color: #66b3ff;
    }

    .playlist-metadata,
    .playlist-tracklist {
        background: #2a2a2a;
        color: #ddd;
        border-color: #444;
    }

    .track-list a {
        color: #6699ff;
    }

    .track-list a:hover {
        background: #333;
    }
}
