/* === Global Resets === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* === Search Section === */
.search-section {
    text-align: center;
    margin-bottom: -10px;
}

.search-section p {
    font-size: 24px;
    margin-bottom: 0px;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-input {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-button:hover {
    background-color: #1976D2;
}

/* === Status === */
.status {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
}
/* === Video + Related Wrapper === */
#video-related-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
	justify-content: center;
	gap: 20px;
    width: 95%; /* Fills 95% of screen */
    max-width: 1600px; /* safety limit */
    margin: 20px auto;
    padding: 10px;
}

/* === Video Player Section === */
.video-player-container {
    flex: 1 1 60%;
    min-width: 350px;
    max-width: 850px;
    width: 100%; /* fill available width */
}

/* === Responsive iframe inside video player === */
.responsive-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Video Info Section === */
#video-info {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

#video-info .top-info {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

#video-info .title {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}

/* === Actions Section (Convert + Download) === */
#actions {
    margin-top: 20px;
    text-align: center;
}

#convert-btn, .download-link {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Convert Button */
#convert-btn {
    background-color: #FF5722;
    color: white;
}

#convert-btn:hover {
    background-color: #E64A19;
}

#convert-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Download Button */
.download-link {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
}

.download-link:hover {
    background-color: #388E3C;
}

/* === Related Video Thumbnails === */
.related-thumb {
    display: block;
    width: 150px;
    flex: 0 0 auto;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.related-thumb:hover {
    transform: scale(1.05);
}

.related-thumb img {
    width: 100%;
    border-radius: 8px;
}

.related-thumb div {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
}

/* === Fade-in Animation === */
.fade-in {
    animation: fadeIn 0.8s ease-in forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === Mobile Responsive === */
@media (max-width: 850px) {
    #video-related-wrapper {
        justify-content: center;
    }

    .video-player-container {
        max-width: 98%;
    }

    .related-thumb {
        width: 45%;
    }
}



