/* assets/css/tabs/videos.css */

/* --- VIDEO FEED LAYOUT --- */
.video-feed {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Großer Abstand für Kino-Optik im Feed */
    margin-top: 30px;
}

.video-card {
    width: 100%;
    padding: 0; /* Wichtig: Kein Padding in der Karte, damit das Video bündig abschließt */
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

/* --- RESPONSIVER VIDEO WRAPPER (16:9) --- */
.video-placeholder {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

/* Dezentere Vergrößerung des Bildes beim Drüberfahren */
.video-placeholder:hover .video-thumbnail {
    transform: scale(1.04);
}

/* Iframe-Styling für den Moment nach dem Klick */
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- YOUTUBE-STYLE PLAY BUTTON --- */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(30, 30, 30, 0.85);
    border-radius: 14%;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

/* Das weiße Abspiel-Dreieck */
.play-button-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent var(--white);
}

.video-placeholder:hover .play-button-overlay {
    background: #FF0000; /* YouTube Rot */
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- VIDEO INFORMATIONEN (TEXTBEREICH) --- */
.video-info {
    padding: 25px 30px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.video-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
    line-height: 1.3;
}

.video-info p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- MOBILE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .video-feed {
        gap: 30px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h4 {
        font-size: 1.2rem;
    }
    
    .video-info p {
        font-size: 0.95rem;
    }
    
    /* Play-Button etwas kleiner auf Handys */
    .play-button-overlay {
        width: 55px;
        height: 38px;
    }
    
    .play-button-overlay::before {
        border-width: 8px 0 8px 16px;
    }
}