.video-item {
    background: var(--white);
    padding: 0 !important;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    transform: translateZ(0); 
    perspective: 1000px;
    border: 1px solid rgba(0,0,0,0.05);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.video-item:focus-within {
    transform: none !important;
    box-shadow: var(--card-shadow-hover);
}

.video-content {
    padding: 20px;
    text-align: center;
}

.video-content h3 {
    text-align: center; 
}

.video-item:hover h3 {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: #bbb;
    font-family: 'Raleway', sans-serif;
}

.video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    margin: -1px -1px 0 -1px; /* Letakarja a fehér kerekítési hibát */
    width: calc(100% + 2px);
    line-height: 0;
    font-size: 0;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-item:nth-child(1) { transition-delay: 0.1s; }
.video-item:nth-child(2) { transition-delay: 0.2s; }
.video-item:nth-child(3) { transition-delay: 0.3s; }