/* Sekcja filmów korzysta z układu siatki i kart strony głównej. */
.home-videos-section[hidden] { display: none; }

.home-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.home-video-card {
    min-width: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.home-video-player {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ddd;
    cursor: pointer;
}

.home-video-player img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111;
}

.home-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    background: rgba(220, 0, 0, .92);
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    transition: transform .2s ease, background .2s ease;
}

.home-video-player:hover .home-video-play {
    background: #f00;
    transform: translate(-50%, -50%) scale(1.08);
}

.home-video-content {
    padding: 15px;
}

.home-video-content h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 1rem;
    line-height: 1.4;
}

.home-video-content time {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.home-video-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #444;
    font-size: .92rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-videos-more {
    margin: 0;
    padding: 0 20px 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .home-videos-grid {
        grid-template-columns: 1fr;
    }
}
