/* Stil für das Cover-Bild */
.afp-cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.afp-album-headline {
	text-align: center;
}

.afp-album-wrapper {
    text-align: center;
}

/* Container für das Album-Cover */
.afp-album-cover-container {
    display: block;
    position: relative;
    width: min(100%, 512px);
    margin: 0 auto;
}

/* Overlay: Anzeige der Titelanzahl im Album (Position rechts oben) */
.afp-album-track-count {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 2px 4px;
    text-align: center;
    font-size: 0.8em;
    border-radius: 3px;
    border-radius: 15px;
    vertical-align: middle;
    font-weight: bold;
}

/* Stil für die Thumbnails */
.afp-thumbnail {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Container für die Thumbnails */
.thumbnail-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.thumbnail-list a img{
    width: 48px!important;
    margin-top: 0px!important;
}

/* Globale Zusammenfassungs-Stile */
.afp-album-count,
.afp-title-count,
.afp-album-duration {
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px 0;
}
/*
.afp-mode-preview .afp-album-headline {
	text-align: left;
}

.afp-mode-preview .thumbnail-list {
	justify-content: left;
}
*/
.afp-mode-preview .afp-album-headline {
	font-size: 1.4em!important;
}

/* Album-Galerie Grid ([dal-album-list columns="4"]) */
.dal-album-grid {
    display: grid;
    grid-template-columns: repeat(var(--dal-album-columns, 4), 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .dal-album-grid { grid-template-columns: repeat(min(var(--dal-album-columns, 4), 3), 1fr); }
}
@media (max-width: 768px) {
    .dal-album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .dal-album-grid { grid-template-columns: 1fr; }
}

/* Album-Liste Styles */
.afs-album-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.afs-album-list-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.afs-album-list-item:last-child {
    border-bottom: none;
}

.afs-album-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.afs-album-list-link:hover {
    opacity: 0.7;
}

.afs-album-list-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.afs-album-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.afs-album-list-title {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.3;
    color: #333;
}

.afs-album-list-caption {
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

/* Album-Filter Styles */
.afs-album-list-filter {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.afs-album-list-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.afs-album-list-filter-label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.afs-album-list-filter-select {
    padding: 8px 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s;
}

.afs-album-list-filter-select:hover {
    border-color: #999;
}

.afs-album-list-filter-select:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
    border-color: #333;
}

/* Pagination Styles */
.afs-album-list-pagination {
    margin: 30px 0;
    text-align: center;
    clear: both;
}

.afs-album-list-pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.afs-album-list-pagination-item {
    display: inline-block;
    margin: 0;
    list-style: none;
}

.afs-album-list-pagination-link {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-size: 1.2em;
    line-height: 1;
}

.afs-album-list-pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #000;
}

.afs-album-list-pagination-link:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.afs-album-list-pagination-current {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: default;
}

.afs-album-list-pagination-ellipsis {
    display: inline-block;
    padding: 8px 4px;
    color: #999;
    user-select: none;
}
