/* Video Page Styles */
.video-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
}

/* Dinamik Aspect Ratio Çözümü */
.video-wrapper.landscape {
    aspect-ratio: 16 / 9;
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper.portrait {
    aspect-ratio: 9 / 16;
    width: 315px;
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-info {
    color: #fff;
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.video-description {
    margin-bottom: 20px;
}

.video-description h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.video-description p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Related Videos */
.related-videos {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.related-videos h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.related-video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

.related-video-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.related-video-item a {
    display: flex;
    gap: 12px;
    padding: 12px;
    color: #fff;
}

.related-video-thumbnail {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-video-item:hover .play-overlay-small {
    opacity: 1;
}

.play-overlay-small i {
    font-size: 12px;
    color: #dc3545;
    margin-left: 2px;
}

.related-video-info {
    flex: 1;
}

.related-video-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    color: #fff;
}


/* Responsive Design */
@media (max-width: 768px) {
    .video-container {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-videos {
        margin-top: 30px;
    }
    
    .related-video-item a {
        gap: 10px;
        padding: 10px;
    }
    
    .related-video-thumbnail {
        width: 100px;
        height: 56px;
    }
    
    .video-wrapper.landscape {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .video-wrapper.portrait {
        width: 280px;
        max-height: 70vh;
        aspect-ratio: 9 / 16;
        margin: 20px auto 0;
    }
}

@media (max-width: 576px) {
    .video-title {
        font-size: 1.3rem;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }
    
    .related-video-thumbnail {
        width: 80px;
        height: 45px;
    }
    
    .related-video-info h5 {
        font-size: 0.8rem;
    }
    
    .video-wrapper.landscape {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .video-wrapper.portrait {
        width: 250px;
        max-height: 60vh;
        aspect-ratio: 9 / 16;
        margin: 40px auto 0;
    }
    
    }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .video-container,
    .related-videos {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .related-video-item {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .related-video-item:hover {
        background: rgba(0, 0, 0, 0.4);
    }
}
