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

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    overflow-y: auto;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #2196f3, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: #2196f3;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.ad-banner-top,
.ad-banner-bottom {
    width: 100%;
    margin: 1rem auto;
}

.ad-banner-side {
    position: absolute;
    right: -180px;
    top: 0;
    width: 160px;
    height: 600px;
    position: sticky;
    margin-top: 2rem;
}

.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

h1 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

p {
    color: #546e7a;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.download-box {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 0 auto 2rem auto;
    width: 100%;
    max-width: calc(100% - 200px);
}

.url-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.supported-platforms {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.platforms-title {
    color: #1a237e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.platform-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.platform-group span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #f5f7fa;
    border: 1px solid #eee;
    cursor: default;
    user-select: none;
}

.platform-group span:hover {
    transform: none;
    box-shadow: none;
    background: #f5f7fa;
    border-color: #eee;
}

/* Platform-specific colors */
.all-platforms span i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.all-platforms span:nth-child(1) i { color: #ff0000; } /* YouTube */
.all-platforms span:nth-child(2) i { color: #1ab7ea; } /* Vimeo */
.all-platforms span:nth-child(3) i { color: #00b2ff; } /* Dailymotion */
.all-platforms span:nth-child(4) i { color: #1877f2; } /* Facebook */
.all-platforms span:nth-child(5) i { color: #e4405f; } /* Instagram */
.all-platforms span:nth-child(6) i { color: #1da1f2; } /* Twitter */
.all-platforms span:nth-child(7) i { color: #000000; } /* TikTok */
.all-platforms span:nth-child(8) i { color: #e50914; } /* Netflix */
.all-platforms span:nth-child(9) i { color: #1f80e0; } /* Hotstar */
.all-platforms span:nth-child(10) i { color: #e72020; } /* JioCinema */
.all-platforms span:nth-child(11) i { color: #00a8e1; } /* Prime */
.all-platforms span:nth-child(12) i { color: #ff0000; } /* SonyLIV */
.all-platforms span:nth-child(13) i { color: #1f4f7f; } /* Voot */
.all-platforms span:nth-child(14) i { color: #1db954; } /* Spotify */
.all-platforms span:nth-child(15) i { color: #e72c30; } /* Gaana */
.all-platforms span:nth-child(16) i { color: #ff5500; } /* SoundCloud */
.all-platforms span:nth-child(17) i { color: #2bc5b4; } /* JioSaavn */
.all-platforms span:nth-child(18) i { color: #8e24aa; } /* Zee5 */
.all-platforms span:nth-child(19) i { color: #e91e63; } /* Hungama */
.all-platforms span:nth-child(20) i { color: #9146ff; } /* Twitch */
.all-platforms span:nth-child(21) i { color: #0097a7; } /* Discovery+ */
.all-platforms span:nth-child(22) i { color: #1f1f1f; } /* MUBI */
.all-platforms span:nth-child(23) i { color: #f47521; } /* Crunchyroll */
.all-platforms span:nth-child(24) i { color: #000000; } /* Apple TV+ */

/* Responsive adjustments */
@media screen and (min-width: 1401px) {
    .container {
        padding: 0 2rem;
    }
    
    .ad-banner-side {
        display: block;
    }
}

@media screen and (max-width: 1400px) {
    .download-box {
        max-width: 100%;
    }
    
    .platform-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .platform-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .platform-group {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .platform-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .url-input-group {
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .platforms-title {
        font-size: 1rem;
    }
    
    .platform-group span {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .platform-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-box {
        padding: 1rem;
    }
    
    input[type="url"] {
        width: 100%;
        min-height: 50px;
        font-size: 0.95rem;
    }
    
    #fetchBtn {
        width: 100%;
        min-height: 50px;
        padding: 0 1.5rem;
        font-size: 0.95rem;
    }
}

/* Add hamburger menu for mobile */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #2196f3;
    cursor: pointer;
}

@media screen and (max-width: 576px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Update ad banners for different devices */
@media screen and (min-width: 728px) {
    .ad-banner-top,
    .ad-banner-bottom {
        height: 90px;
        max-width: 728px;
    }
}

@media screen and (max-width: 727px) {
    .ad-banner-top,
    .ad-banner-bottom {
        height: 60px;
        max-width: 320px;
    }
}

/* Enhanced input field */
input[type="url"] {
    flex: 1;
    min-height: 54px;
    padding: 0 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

input[type="url"]:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

input[type="url"]::placeholder {
    color: #9e9e9e;
}

/* Enhanced Get Video button */
#fetchBtn {
    min-height: 54px;
    padding: 0 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#fetchBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

#fetchBtn:hover::before {
    left: 100%;
}

#fetchBtn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#fetchBtn:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

#fetchBtn:hover i {
    transform: translateY(-1px);
}

#fetchBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

/* Loading state with enhanced animation */
#fetchBtn.loading {
    background: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

#fetchBtn.loading i {
    animation: spin 1s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

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

.results {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.quality-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.quality-option span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.quality-option span i {
    color: #2196f3;
    font-size: 1.1rem;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Add these styles for the download buttons */
.quality-option button {
    min-height: 44px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quality-option button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.quality-option button:hover::before {
    left: 100%;
}

.quality-option button:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.quality-option button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.quality-option button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.quality-option button:hover i {
    transform: translateY(-1px);
}

/* Responsive Design Updates */
@media (max-width: 1400px) {
    .ad-banner-side {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .url-input-group {
        flex-direction: column;
    }

    .ad-banner-top,
    .ad-banner-bottom {
        height: 60px;
    }

    input[type="url"],
    button {
        width: 100%;
    }

    #fetchBtn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Add middle ad banner styles */
.ad-banner-middle {
    width: 100%;
    margin: 2rem auto;
    max-width: 728px;
}

/* Update responsive styles for middle ad */
@media screen and (min-width: 728px) {
    .ad-banner-top,
    .ad-banner-middle,
    .ad-banner-bottom {
        height: 90px;
        max-width: 728px;
    }
}

@media screen and (max-width: 727px) {
    .ad-banner-top,
    .ad-banner-middle,
    .ad-banner-bottom {
        height: 60px;
        max-width: 320px;
    }
}

/* Remove these properties from .results */
.results {
    /* remove max-height and overflow-y properties */
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

/* Update container spacing */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.download-box {
    margin-bottom: 3rem; /* Increase bottom margin */
}

/* Add these new styles for the additional pages */
.page-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 2rem auto;
}

/* How to Use page styles */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
}

.step h2 {
    color: #2196f3;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ page styles */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: left;
}

.faq-item h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

/* Blog page styles */
.blog-posts {
    max-width: 800px;
    margin: 2rem auto;
}

.blog-post {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    margin: 1rem 0;
}

.read-more {
    display: inline-block;
    color: #2196f3;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }
    
    .instructions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
} 