/**
 * Mediathek — student library cards
 */
.cl-mediathek-card {
    border: 1px solid rgba(15, 39, 68, 0.08);
    border-radius: var(--cl-radius);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15, 39, 68, 0.05);
}

.cl-mediathek-card__thumb {
    height: 180px;
    object-fit: cover;
}

.cl-mediathek-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--cl-bg-muted);
    color: rgba(15, 39, 68, 0.25);
    font-size: 2.5rem;
}

.cl-mediathek-card__meta li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    color: var(--cl-text-muted);
}

.cl-mediathek-card .card-title {
    font-size: var(--cl-fs-sm);
    font-weight: 700;
    color: var(--cl-navy);
}

/* Guest / detail preview player */
.cl-media-preview__frame {
    background: #0b1220;
    border-radius: var(--cl-radius, 12px);
    overflow: hidden;
    border: 1px solid rgba(15, 39, 68, 0.08);
}

.cl-media-preview__player,
.cl-media-preview__embed {
    display: block;
    width: 100%;
    min-height: 280px;
    max-height: 70vh;
    border: 0;
    background: #0b1220;
}

.cl-media-preview__embed {
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.cl-media-preview__audio {
    display: block;
    width: 100%;
    margin: 1.25rem;
    max-width: calc(100% - 2.5rem);
}

.cl-media-preview__image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #0b1220;
}
