.mp3-player-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.mp3-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

#mp3-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #000000; /* Sort tekst */
    background-color: white;
}

#mp3-search-input::placeholder {
    color: #666; /* Mørkegrå placeholder tekst */
}

#mp3-per-page {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #000000; /* Sort tekst */
}

#mp3-search-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

#mp3-search-button:hover {
    background-color: #005a87;
}

.mp3-results-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e7f3ff;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.mp3-results-info p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

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

.mp3-result-item {
    background-color: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mp3-result-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mp3-track-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.mp3-track-basic {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp3-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    line-height: 1.3;
}

.mp3-basic-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mp3-duration,
.mp3-file-size,
.mp3-bitrate {
    font-size: 13px;
    color: #666;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.mp3-track-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mp3-play-button,
.mp3-download-button,
.mp3-info-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 40px;
    color: #000000; /* Sort tekst på knapper */
}

.mp3-play-button {
    background-color: #28a745;
    color: white;
}

.mp3-play-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.mp3-download-button {
    background-color: #6c757d;
    color: white;
}

.mp3-download-button:hover {
    background-color: #545b62;
    transform: scale(1.05);
}

.mp3-info-button {
    background-color: #17a2b8;
    color: white;
}

.mp3-info-button:hover,
.mp3-info-button.active {
    background-color: #138496;
    transform: scale(1.05);
}

.mp3-track-metadata {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

.mp3-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metadata-item strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-item span {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Pagination */
.mp3-pagination-container {
    margin: 20px 0;
    text-align: center;
}

.mp3-pagination {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.mp3-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #000000; /* Sort tekst på pagination knapper */
}

.mp3-page-btn:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.mp3-page-current {
    padding: 8px 12px;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.mp3-prev-btn,
.mp3-next-btn {
    font-weight: 600;
}

/* Audio Player */
.mp3-player-audio {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-track h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

audio {
    border-radius: 8px;
    width: 100%;
}

/* States */
.mp3-loading,
.mp3-error,
.mp3-no-results {
    padding: 30px;
    text-align: center;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.mp3-loading p {
    color: #0073aa;
    font-size: 16px;
}

.mp3-error p {
    color: #dc3545;
    font-size: 16px;
}

.mp3-no-results p {
    color: #666;
    font-size: 16px;
}

/* Responsiv design */
@media (max-width: 768px) {
    .mp3-player-container {
        margin: 10px;
        padding: 15px;
    }
    
    .mp3-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #mp3-search-input,
    #mp3-per-page,
    #mp3-search-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mp3-track-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mp3-track-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .mp3-basic-meta {
        gap: 8px;
    }
    
    .mp3-metadata-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .metadata-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    .metadata-item:last-child {
        border-bottom: none;
    }
    
    .metadata-item strong {
        font-size: 11px;
        min-width: 80px;
    }
    
    .metadata-item span {
        text-align: right;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mp3-track-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .mp3-play-button,
    .mp3-download-button,
    .mp3-info-button {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
    
    .mp3-basic-meta {
        justify-content: space-between;
    }
    
    .mp3-duration,
    .mp3-file-size,
    .mp3-bitrate {
        font-size: 12px;
        padding: 3px 6px;
    }
}