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

body {
    background-color: #050505;
    /* Grid Background Effect */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
nav {
    background: #111;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icons {
    display: flex;
    gap: 20px;
    color: #888;
    cursor: pointer;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Main Card */
.card {
    background: #121212;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.icon-header i {
    font-size: 4rem;
    color: #1ed760; /* Spotify Green fallback */
    color: #ff0000; /* YouTube Red */
    margin-bottom: 15px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.highlight {
    color: #ff0000;
}

.subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Input */
.input-group {
    background: #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.input-group i {
    color: #888;
    margin-right: 10px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.options select {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
}

/* Button */
button {
    background: #ff0000;
    color: #000;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background: #cc0000;
    transform: scale(1.02);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.f-icon {
    background: #1a1a1a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    color: #1ed760; /* fallback */
    color: #ff0000;
}

.feature-item span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #bbb;
}

/* How to Use */
.how-to-card {
    background: #121212;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    text-align: left;
}

.how-to-card h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ddd;
}

.step-num {
    background: #1ed760; /* fallback */
    background: #ff0000;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.footer-text {
    margin-top: 40px;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Loading & Result Styles */
.result-area {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.download-final {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

