/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #1DB954;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}




/* =========================
   NAVBAR
========================= */

#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background:#191414;
    backdrop-filter: blur(8px);
}

#nav a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    transition: 0.3s ease;
}

#nav a:hover {
    color: #00d4ff;
}

.sl-nav ul {
    list-style: none;
}

.sl-nav > ul > li {
    position: relative;
    cursor: pointer;
}

.sl-nav ul ul {
    display: none;
    position: absolute;
    background: #ffffff;
    color: #000;
    top: 30px;
    right: 0;
    min-width: 150px;
    border-radius: 6px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.sl-nav ul ul li {
    padding: 8px 15px;
}

.sl-nav ul ul li a {
    color: #000;
}

.sl-nav ul ul li:hover {
    background: #f2f2f2;
}

.sl-nav li:hover ul {
    display: block;
}

/* =========================
   CONTENT AREA
========================= */

#content {
    flex: 1;
    text-align: center;
    padding: 60px 20px;
}

#logo {
    width: 320px;
    margin-bottom: 40px;
}

/* =========================
   HERO SEARCH
========================= */

.hero-input {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-input-Search {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-input-Search input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.hero-input-Search button {
    background: #191414;
    border: none;
    color: #fff;
    padding: 0 25px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
}

.hero-input-Search button:hover {
    opacity: 0.9;
}

.hero-input p {
    margin-top: 15px;
    font-size: 13px;
    color: #191414;
}

.hero-input p a {
   
    color: #191414;
}


/* =========================
   TEXT CONTENT
========================= */

#text {
    max-width: 800px;
    margin: 40px auto;
    background: rgb(255,255,255);
	color: #191414;
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
}

#text h1 {
    margin-bottom: 20px;
    font-size: 32px;
    text-align: center;
	font-weight: 500;
	border-bottom: 2px solid #191414;
	padding-bottom:12px;
}

#text p {
    margin-bottom: 4px;
    line-height: 1.7;
    font-size: 16px;
	color: #535353;
}

/* =========================
   FOOTER
========================= */

#footer {
    text-align: center;
    padding: 20px;
    background: #191414;
}

#footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

#footer a:hover {
    color: #00d4ff;
}

/* =========================
   LOADING SPINNER
========================= */

#load {
    margin-top: 20px;
    font-size: 24px;
    display: none;
}





.download-actions {
    margin-top: 10px;
}

.mp3-btn, .mp4-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.mp3-btn {
    background: #ff4d4d;
    color: white;
}

.mp4-btn {
    background: #444;
    color: white;
}

.quality-card {
    margin-top: 12px;
    padding: 15px;
    background: #1f1f1f;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.quality-card p {
    margin-bottom: 10px;
    font-weight: bold;
}

.quality-option {
    display: block;
    padding: 8px;
    margin-bottom: 6px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.2s;
}

.quality-option:hover {
    background: #ff4d4d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}





/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 992px) {

    #nav {
        padding: 15px 5%;
    }

    #logo {
        width: 160px;
    }

    .hero-input-Search input {
        font-size: 14px;
        padding: 14px 20px;
    }

    #text {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    #nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    #nav a {
        margin: 5px 8px;
    }

    .hero-input-Search {
        flex-direction: column;
        border-radius: 15px;
    }

    .hero-input-Search input {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .hero-input-Search button {
        width: 100%;
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }

    #text {
        padding: 20px;
    }

    #text h1 {
        font-size: 22px;
    }
}


/* ===============================
   Video List Container
================================= */


.video-list-container{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.video-card-wrapper{
	display: flex;
	padding: 20px;
	flex-direction: column;
	margin-bottom: 20px;
	color: #f0f0f0;
	background: #191414;
	border-radius: 14px;
	transition: all 0.25s ease;
	border: 1px solid #f0f0f0;
	max-width: 800px;
}

.video-card {
    display: flex;
    gap: 16px;
   
    
    
	
}

.video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* ===============================
   Thumbnail
================================= */

.thumbnail {
    flex: 0 0 320px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

/* ===============================
   Video Info
================================= */

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.channel {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}

.date {
    font-size: 13px;
    color: #fff;
    margin-bottom: 10px;
}

.description {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   Container Spacing
================================= */

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

/* ===============================
   Mobile Responsive
================================= */

@media (max-width: 992px) {

    .video-card {
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
    }

    .thumbnail img {
        height: auto;
    }

    .video-info h3 {
        font-size: 16px;
    }

    .description {
        max-height: none;
    }
}


/* ===============================
   Video Action Buttons
================================= */

.video-actions {
    margin-top: 14px;
    display: flex;
	flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

/* Base Button */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* MP3 Button (Primary Theme Color) */
.btn-mp3 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.btn-mp3:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* MP4 Button (Secondary Accent) */
.btn-mp4 {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.btn-mp4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}


/* MP3 Button (Primary Theme Color) */
.btn-play {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}




.quality-card {
    margin-top: 12px;
    padding: 0 15px;
    background: #1f1f1f;
    border-radius: 10px;

    overflow: hidden;

    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);

    transition: 
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        padding 0.3s ease;
}

/* Active state */
.quality-card.active {
    padding: 15px;
    max-height: 500px; /* enough height */
    opacity: 1;
    transform: translateY(0);
}

/* Quality links */
.quality-card a {
    display: block;
    padding: 8px;
    margin-bottom: 6px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.quality-card a:hover {
    background: #ff4d4d;
    transform: translateX(4px);
}



.youtube-player {
    margin-top: 15px;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.youtube-player.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Make iframe responsive */
.youtube-player iframe {
    border-radius: 10px;
}


.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

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




