.erstv-history {
    width: 100%;
}

.erstv-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.erstv-history-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.erstv-history-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.erstv-history-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.erstv-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.erstv-history-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.erstv-history-item:hover .erstv-history-play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

.erstv-history-title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.erstv-history-date {
    padding: 0 16px 14px;
    font-size: 12px;
    color: #999;
}

/* "Alle Videos" preview button */
.erstv-history-more {
    margin-top: 24px;
    text-align: center;
}
.erstv-history-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background: #E5471B;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.erstv-history-more-btn:hover { opacity: 0.9; }

/* Responsive: override the inline column count on smaller screens */
@media (max-width: 768px) {
    .erstv-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .erstv-history-grid {
        grid-template-columns: 1fr !important;
    }
}
