/* Individual Video Page Styles */

.video-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #6EC1E4 0%, #2B4080 100%);
    position: relative;
    overflow-x: hidden;
    padding: 120px 0 80px 0;
}

/* Back Navigation */
.back-nav {
    padding: 0 40px;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f2f2f2;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
    color: #2B4080;
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Video Content */
.video-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: #2B4080;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.loading-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #f2f2f2;
    font-size: 1.2rem;
    font-style: italic;
}

/* Video Info */
.video-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
}

.video-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #f2f2f2;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    transform: rotate(-1deg);
}

.video-date {
    font-size: 1.1rem;
    color: rgba(242, 242, 242, 0.7);
    font-weight: 400;
    font-style: italic;
    margin: 0 0 1.5rem 0;
}

.video-description {
    font-size: 1.1rem;
    color: #f2f2f2;
    line-height: 1.6;
    font-weight: 300;
}

.video-description p {
    margin: 0 0 1rem 0;
}

.video-description p:last-child {
    margin-bottom: 0;
}

/* Related Videos */
.related-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.related-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f2f2f2;
    margin: 0 0 2rem 0;
    text-align: center;
    transform: rotate(-1deg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.related-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #2B4080;
}

.related-video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.related-video-container .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.related-item:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

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

.related-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: #f2f2f2;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 0.85rem;
    color: rgba(242, 242, 242, 0.7);
    font-weight: 400;
    font-style: italic;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-shape.circle {
    width: 100px;
    height: 100px;
    background: #FFD700;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #FF6B6B;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.floating-shape.square {
    width: 80px;
    height: 80px;
    background: #2B4080;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-main {
        padding: 100px 0 60px 0;
    }
    
    .back-nav,
    .video-content,
    .related-videos {
        padding: 0 20px;
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .back-nav {
        margin-bottom: 1.5rem;
    }
    
    .video-content {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .back-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .related-item {
        padding: 1rem;
    }
}