* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(255, 0, 80, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ff0050;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
}

.logo i {
    color: #00f2ea;
    font-size: 2rem;
}

.logo span {
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu li a:hover {
    background: #ff0050;
    transform: translateY(-2px);
}

/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #000;
    padding: 2rem 1.5rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background: #ff0050;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Ad Banners - FIXED */
.ad-container {
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 80, 0.3);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden;
}

.ad-container iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: white;
}

.ad-container:hover {
    border-color: #00f2ea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 80, 0.2);
}

/* Backup Ad Styles */
.backup-ad {
    width: 100%;
    max-width: 728px;
}

.ad-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
    max-width: 728px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
    text-decoration: none;
}

.ad-banner::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: left 0.7s;
}

.ad-banner:hover::before {
    left: 100%;
}

.ad-banner i {
    font-size: 24px;
    margin-right: 15px;
    color: #fff;
}

.ad-content {
    text-align: left;
    flex: 1;
}

.ad-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.ad-content small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.9);
}

.ad-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 80, 0.2);
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Download Section */
.download-card {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 0, 80, 0.3);
    box-shadow: 0 20px 40px rgba(255, 0, 80, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    color: #fff;
    font-size: 1.8rem;
}

.card-title i {
    color: #00f2ea;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.url-input {
    flex: 1;
    padding: 1.2rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #333;
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #ff0050;
    box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.download-btn {
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 0, 80, 0.3);
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

.download-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.api-info {
    background: rgba(0, 242, 234, 0.1);
    border-left: 4px solid #00f2ea;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #fff;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.api-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Video Preview */
.result-container {
    margin-top: 2rem;
    display: none;
}

.result-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

.video-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    align-items: center;
    border: 1px solid rgba(255, 0, 80, 0.2);
    animation: fadeIn 0.6s ease-out;
}

.video-thumbnail {
    width: 180px;
    height: 320px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #ff0050;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    border-color: #00f2ea;
}

.video-details {
    flex: 1;
    min-width: 300px;
}

.video-details h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.5rem;
}

.video-details p {
    color: #ccc;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-details i {
    color: #00f2ea;
    width: 20px;
}

.download-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 0, 80, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.download-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

.download-option.audio {
    background: linear-gradient(135deg, #00f2ea, #00bcd4);
}

.download-option.audio:hover {
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.4);
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.loading.active {
    display: block;
    animation: fadeIn 0.3s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 0, 80, 0.2);
    border-top: 3px solid #ff0050;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.8rem;
}

.loading p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

/* Messages */
.message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: none;
    border-left: 4px solid;
    font-size: 0.9rem;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.active {
    display: block;
}

.message.error {
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
    border-left-color: #ff0050;
}

.message.success {
    background: rgba(0, 242, 234, 0.1);
    color: #00f2ea;
    border-left-color: #00f2ea;
}

/* Steps */
.steps-section {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(0, 242, 234, 0.3);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.steps-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    color: #fff;
    font-size: 1.8rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: #ff0050;
    box-shadow: 0 15px 30px rgba(255, 0, 80, 0.2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.step-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.8s ease-out;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
    color: #00f2ea;
    background: rgba(0, 242, 234, 0.1);
}

/* URL Examples */
.url-examples {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 0, 80, 0.2);
    animation: fadeIn 0.6s ease-out;
}

.url-examples h4 {
    margin-bottom: 0.8rem;
    color: #00f2ea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 0, 80, 0.3);
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.example-btn:hover {
    background: rgba(255, 0, 80, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Download Progress */
.progress-container {
    display: none;
    margin: 1rem 0;
}

.progress-container.active {
    display: block;
    animation: fadeIn 0.3s;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
    animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #111;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 2px solid #ff0050;
    animation: slideUp 0.4s ease-out;
}

.modal h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.modal p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal button {
    background: #ff0050;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.modal button:hover {
    background: #ff4081;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    header {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .download-card, .steps-section {
        padding: 2rem;
    }

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

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

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

    .video-preview {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .video-thumbnail {
        width: 100%;
        max-width: 250px;
        height: auto;
        max-height: 400px;
    }
    
    .ad-container {
        padding: 0.8rem;
        min-height: 70px;
    }
    
    .ad-container iframe {
        max-width: 100%;
        height: auto;
    }
    
    .backup-ad .ad-banner {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .backup-ad .ad-banner i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .backup-ad .ad-content {
        text-align: center;
    }
    
    .download-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-option {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .ad-content strong {
        font-size: 1rem;
    }
    
    .ad-content small {
        font-size: 0.75rem;
    }
}

/* Placeholder color */
.url-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}