/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #480d0b, #0a5b72);
    text-align: center;
    padding: 20px 1px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 1px 1px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

h1 {
    margin-top: 15px;
    margin-bottom: 18px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
}

.outer-container {
    cursor: hand;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 5px 1px;
    padding: 1px;
    box-sizing: border-box;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
}

.middle-container {
    cursor: hand;
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 1px;
    box-sizing: border-box;
    box-shadow: 3px 4px 7px rgba(0, 0, 0, 0.15);
}

.inner-container {
    cursor: hand;
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 7px 1px;
    padding-left: 1px;
    padding-right: 1px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}





.play-icon {
    cursor: hand;
    opacity: 1;
    font-size: 32px;
    color: white;
    border: 4px solid red;
    border-radius: 20px;
}

.play-icon:hover {
    opacity: 0;
    
}




/* Ensuring the play button centers properly within the video frame */
.inner-container .video-frame .video-thumbnail-overlay {
    cursor: hand;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.6);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.8); /* Purple Glow */
    cursor: pointer;
    animation: fadeIn 0.6s ease-in-out;
}

.inner-container .video-frame .video-thumbnail-overlay:hover {
    
   opacity: 0;
}

.inner-container .video-frame .video-thumbnail-overlay .play-icon{
    position: relative;
    top: 27%;
    left: 40%;
    transform: translate(-30%, -30%) scale(0);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.6);
    width: 0px;
    height: 0px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: -9px;
    margin-left: -9px;
    padding-top: -9px;
    margin-top: -9px;
    cursor: pointer;
    animation: fadeIn 0.6s ease-in-out;
}


.inner-container .video-frame .video-thumbnail-overlay:hover .play-icon {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}



.inner-container .video-frame .video-thumbnail-overlay .video-thumbnail-overlay:hover {
    opacity: 0;
    position: relative;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.6); /* Purple Glow */
}

.inner-container .video-frame .video-thumbnail-overlay .video-thumbnail-overlay .play-icon {
    opacity: 0;
    font-size: 32px;
    color: red;
    z-index: 1001;
}




h2 {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #0056b3;
    font-size: 24px;
    text-shadow: 0px 0px 8px rgba(0, 86, 179, 0.3);
}

.video-list {
    cursor: hand;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.video-box {
    cursor: hand;
    background: linear-gradient(to top, #ffffff, #eef1f5);
    padding: 2px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 99%;
    max-width: 1000px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.video-box:hover {
    cursor: hand;
    transform: scale(1.005);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6);
    
    border: 1px solid rgba(128, 0, 128, 0.6);
}

.video-box:active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(0, 198, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.video-box:hover .video-thumbnail-overlay {
    cursor: hand;
    opacity: 0;
    transform: scale(1.005);
    animation: bounceIn 0.0001s ease-in-out;
}

.video-box:hover .video-frame {
    transform: scale(1.005);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}



.video-player {
    width: 100%;
    max-width: 900px;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.video-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}



.video-thumbnail-overlay::before {
    content: '\25B6';
    font-size: 35px;
    color: white;
    left: 0px;
    padding: 1.5px 1px;
    margin:1.5px 1px;
}

@keyframes bounceIn {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


/* Responsive Design */
@media (max-width: 768px) {
    .outer-container {
        width: 98.5%;
        margin-top: 14px;
        padding: 2px 1px;
        
    }
    .middle-container {
        width: 100%;
        padding: 1px 1px;
        background-color: #1e1e1e;
        color: #373a3f;
    }
    .inner-container {
        width: 100%;
        max-width: 600px;
        padding-top: 2px;
        padding-left: 1px;
        padding-right: 1px;
        background-color: #1e1e1e;
        background:linear-gradient(to bottom, #373a3f, #0a5b72);
    }
    .video-frame, .video-player {
        width: 92vw;
        max-width: 92vw;
        height: 100%;
    }
    .video-info h1 {
        font-size: 16px;
        margin: 1px 3.5px;
    }
    .video-info p {
        font-size: 12.5px;
        padding-left: 4px;
        padding-right: 4px;
        margin: 7px 3.5px;
    }
    .upload-time {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .video-frame, .video-player {
        width: 99%;
        height: 100%;
        margin-top: 5px;
        padding-top: 4px;
        max-width: 900px;
        background-color: #1e1e1e;
    }
    .video-info h1 {
        font-size: 16px;
        margin: 1px 3.5px;
    }
    .video-info p {
        font-size: 12.5px;
        padding-left: 4px;
        padding-right: 4px;
        margin: 7px 3.5px;
    }
    .upload-time {
        font-size: 9px;
    }
}

