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

body{
    font-family:Arial,Helvetica,sans-serif;
    background:linear-gradient(135deg,#25F4EE,#FE2C55);
    min-height:100vh;
    color:#222;
}

/*=========================================
    CONTAINER
=========================================*/
.container{
    width:100%;
    max-width:760px;
    margin:60px auto;
    padding:20px;
}

/*=========================================
    HEADER
=========================================*/
.header{
    text-align:center;
    margin-bottom:35px;
}

.header h1,
.container h1{
    color:#fff;
    font-size:40px;
    margin-bottom:12px;
    text-align:center;
}

.header p{
    color:#fff;
    font-size:17px;
    line-height:1.7;
}

/*=========================================
    FORM
=========================================*/
.download-box{
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

#downloadForm{
    display:flex;
    flex-direction:column;
    gap:20px;
}

#downloadForm input[type=url]{
    width:100%;
    height:58px;
    border:2px solid #ddd;
    border-radius:10px;
    padding:0 18px;
    font-size:16px;
    outline:none;
    transition:.3s;
}

#downloadForm input[type=url]:focus{
    border-color:#FE2C55;
}

button{
    height:58px;
    border:none;
    border-radius:10px;
    background:#FE2C55;
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#d90447;
}

/*=========================================
    LOADER
=========================================*/
.loading{
    display:none;
    text-align:center;
    margin-top:30px;
}

.loader{
    width:55px;
    height:55px;
    border:5px solid #ddd;
    border-top:5px solid #FE2C55;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:0 auto 20px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/*=========================================
    FEATURES
=========================================*/
.features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:35px;
}

.feature{
    background:#fff;
    padding:22px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.feature h3{
    color:#FE2C55;
    margin-bottom:10px;
}

.feature p{
    color:#666;
    line-height:1.6;
}

/*=========================================
    DOWNLOAD RESULT
=========================================*/
.result-card{
    background:#fff;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.thumbnail{
    width:180px;
    max-width:100%;
    border-radius:15px;
    margin-bottom:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.preview-video{
    width:100%;
    max-width:420px;
    border-radius:12px;
    margin-bottom:20px;
}

.result-card h2{
    font-size:26px;
    margin-bottom:15px;
}

.result-card p{
    color:#555;
    line-height:1.7;
    margin-bottom:20px;
}

/*=========================================
    STATS
=========================================*/
.stats{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin:25px 0;
}

.stats div{
    min-width:120px;
    padding:15px;
    background:#f7f7f7;
    border-radius:10px;
}

.stats strong{
    display:block;
    margin-bottom:6px;
    font-size:18px;
}

.stats span{
    color:#666;
}

/*=========================================
    BUTTONS
=========================================*/
.download-btn,
.btn{
    display:inline-block;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.download-btn{
    margin-top:20px;
    background:#FE2C55;
    color:#fff;
    padding:14px 35px;
    font-size:17px;
    font-weight:600;
}

.download-btn:hover{
    background:#d90447;
}

.btn{
    margin-top:20px;
    background:#333;
    color:#fff;
    padding:12px 30px;
}

.btn:hover{
    background:#111;
}

/*=========================================
    MEDIA GRID
=========================================*/
.media-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:25px;
}

.media-item{
    background:#fafafa;
    border:1px solid #eee;
    border-radius:12px;
    padding:20px;
}

.media-item img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

/*=========================================
    ERROR
=========================================*/
.error{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    border:1px solid #ffd2d2;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.error h3{
    color:#d8000c;
}

/*=========================================
    FOOTER
=========================================*/
footer{
    text-align:center;
    margin-top:40px;
    color:#fff;
}

/*=========================================
    RESPONSIVE
=========================================*/
@media(max-width:768px){

.container{
    margin:35px auto;
}

.header h1,
.container h1{
    font-size:30px;
}

.download-box,
.result-card{
    padding:25px;
}

.features{
    grid-template-columns:1fr;
}

.stats{
    flex-direction:column;
}

.download-btn,
.btn{
    width:100%;
}

.preview-video{
    max-width:100%;
}

}

@media(max-width:576px){

.header h1,
.container h1{
    font-size:26px;
}

.header p{
    font-size:15px;
}

#downloadForm input[type=url],
button{
    height:52px;
    font-size:15px;
}

.thumbnail{
    width:150px;
}

}


.spinner{
    display:inline-block;
    width:16px;
    height:16px;
    margin-right:8px;
    border:2px solid rgba(255,255,255,.4);
    border-top:2px solid #fff;
    border-radius:50%;
    animation:smdSpin .8s linear infinite;
    vertical-align:middle;
}

@keyframes smdSpin{
    to{
        transform:rotate(360deg);
    }
}


/*=======Youtube addional=====*/


/* ==========================
   Google Font
========================== */

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {

    background: #f5f7fb;
    color: #333;

}

.container {

    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;

}

.container h1 {

    text-align: center;
    margin-bottom: 30px;
    color: #ff0000;
    font-size: 34px;
    font-weight: 700;

}

.result-card {

    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    padding: 30px;

}

.thumbnail {

    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);

}

.result-card h2 {

    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;

}

.result-card p {

    text-align: center;
    color: #777;
    margin-bottom: 25px;

}

.result-card h3 {

    margin: 30px 0 15px;
    color: #ff0000;
    font-size: 22px;

}

/*=========================
TABLE
=========================*/

.download-table {

    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;

}

.download-table thead {

    background: #ff0000;
    color: #fff;

}

.download-table th {

    padding: 15px;
    font-size: 15px;

}

.download-table td {

    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;

}

.download-table tbody tr:nth-child(even) {

    background: #fafafa;

}

.download-table tbody tr:hover {

    background: #fff2f2;

}

/*=========================
BUTTONS
=========================*/

.download-btn {

    display: inline-block;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    transition: .3s;
    font-weight: 600;

}

.download-btn:hover {

    background: #d60000;
    transform: translateY(-2px);

}

.btn {

    display: inline-block;
    margin-top: 25px;
    background: #222;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: .3s;

}

.btn:hover {

    background: #000;

}

/*=========================
ERROR
=========================*/

.error {

    background: #ffe5e5;
    border-left: 5px solid red;
    padding: 20px;
    border-radius: 10px;
    text-align: center;

}

.error h3 {

    color: red;
    margin-bottom: 20px;

}

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

@media(max-width:768px) {

    .container {

        padding: 15px;

    }

    .result-card {

        padding: 20px;

    }

    .container h1 {

        font-size: 28px;

    }

    .result-card h2 {

        font-size: 22px;

    }

    .download-table {

        display: block;
        overflow-x: auto;
        white-space: nowrap;

    }

    .download-btn {

        padding: 8px 15px;

    }

}

/*=========================================
  DOWNLOAD RESULT PAGE
=========================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #00c6ff, #7b5cff, #ff6b9d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 700px;
}

.container h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 40px;
    font-weight: bold;
}

.result-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.thumbnail {
    width: 150px;
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.result-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.result-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
}

.stats div {
    flex: 1;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 12px;
    transition: .3s;
}

.stats div:hover {
    background: #ececec;
}

.stats strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.download-btn {
    display: inline-block;
    padding: 15px 35px;
    background: #ff0050;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: .3s;
}

.download-btn:hover {
    background: #d90447;
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: .3s;
}

.btn:hover {
    background: #000;
}

.error {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.error h3 {
    color: #e63946;
    margin-bottom: 20px;
    font-size: 24px;
}

pre {
    background: #f5f5f5;
    text-align: left;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    margin: 20px 0;
    font-size: 13px;
}

@media(max-width:768px) {
    .container h1 {
        font-size: 30px;
    }
    .stats {
        flex-direction: column;
    }
    .result-card {
        padding: 25px;
    }
    .thumbnail {
        width: 180px;
    }
    .download-btn,
    .btn {
        width: 100%;
    }
}

/*=======xyz=====*/


.media-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

    margin-top:30px;

}

.media-item{

    background:#ffffff;

    border-radius:15px;

    padding:20px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.thumbnail{

    width: 100px;

    height: 100px;

    object-fit: cover;

    border-radius: 12px;

    display: block;

    margin: 0 auto 15px;

}

.preview-video{

    width:50%;

    border-radius:12px;

    margin-bottom:15px;

}

.download-btn{

    display:inline-block;

    width:50%;

    padding:14px;

    background:#e1306c;

    color:#fff;

    text-decoration:none;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.download-btn:hover{

    background:#c41c5c;

}