@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: #000;
    color: white;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    margin: 0;
}

.container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 20px auto;
    border: 2px solid #ff00a6;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
    }

    100% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.7);
    }
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff00a6;
    text-shadow: 0 0 10px #ff00a6, 0 0 20px #ff00a6;
    animation: textGlow 1.5s infinite alternate;
}
h4 {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ff00a6;
    text-shadow: 0 0 10px #ff00a6, 0 0 20px #ff00a6;
    animation: textGlow 1.5s infinite alternate;
}
@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px #ff00a6, 0 0 20px #ff00a6;
    }

    100% {
        text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    }
}

.link-con {
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    width: 70%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #ff00a6;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

button {
    margin: 10px;
    padding: 12px 18px;
    border: none;
    background: linear-gradient(135deg, #ff00a6, #00ffff);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.5);
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.preview {
    display: none;
    margin-top: 20px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 10px auto;
    border: 2px solid #ff00a6;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
    display: block;
}

.quality-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.loading {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.error {
    color: #ff4444;
    margin-top: 20px;
    font-size: 16px;
    text-shadow: 0 0 10px #ff4444;
}

.video-details {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #ff00a6;
    text-shadow: 0 0 10px #ff00a6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-details p {
    width: 60%;
    margin: 10px auto;
}

.accordion {
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 14px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: 0.3s;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.5);
}

.accordion:hover {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.active,
.accordion:hover {
    background-color: #444;
}

.accordion:after {
    content: ' +';
    font-size: 20px;
    color: #ff00a6;
    float: right;
}

.active:after {
    content: ' -';
}

.panel {
    padding: 0 18px;
    display: none;
    background-color: #444;
    overflow: hidden;
    border-radius: 5px;
}

/* Enhanced Mobile Styles */
@media only screen and (max-width: 767px) {
    .container {
        padding: 25px;
        margin: 10px;
        width: 90%;
    }

    .link-con {
        flex-direction: column;
        align-items: center;
    }

    .check-url,
    input {
        width: 90%;
        margin: 5px 0;
    }

    video {
        width: 100%;
    }

    .accordion {
        font-size: 16px;
        padding: 12px;
    }

    .video-details p {
        width: 90%;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    h2 {
        font-size: 22px;
    }
}

/* Neon Toast Styling */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: none;
    text-align: center;
    z-index: 1000;
    min-width: 200px;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 2px solid #ff00a6;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
    animation: toastIn 0.5s ease-out, glow 2s infinite alternate;
}

.toast.success {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.toast.error {
    border-color: #ff00a6;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
}

@keyframes toastIn {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.download-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-mp4 {
    background: linear-gradient(135deg, #ff00a6, #ff3366);
    box-shadow: 0 0 15px rgba(255, 0, 150, 0.5);
}

.download-mp3 {
    background: linear-gradient(135deg, #00ffff, #33ccff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 150, 0.7);
}

.download-mp3:hover {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
}
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding:2px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 10px auto;
    border: 2px solid #ff00a6;
    animation: glow 2s infinite alternate;
}