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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #eaeaea;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #3a3a5e;
    padding-bottom: 30px;
}

.header h1 {
    font-size: 2.8rem;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

/* Sections */
.section {
    background-color: #252542;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.section h2 {
    font-size: 1.4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.genre-pill {
    background-color: #3a3a5e;
    border: 2px solid #3a3a5e;
    color: #888;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

.genre-pill:hover {
    background-color: #4a4a6e;
    border-color: #5a5a7e;
}

.genre-pill.active {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.genre-count {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* Sliders */
.slider-group {
    margin-bottom: 25px;
}

.slider-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #eaeaea;
}

.slider-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff6b6b, #feca57);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff6b6b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff6b6b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: none;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #ff6b6b;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #ee5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background-color: #3a3a5e;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #4a4a6e;
}

/* Message */
.message {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

.message.success {
    color: #51cf66;
}

.message.error {
    color: #ff6b6b;
}

/* Feed URL */
.feed-url-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feed-url-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #3a3a5e;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #eaeaea;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.feed-url-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.instructions {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3a3a5e;
    margin-top: 40px;
    color: #666;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

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

    .section {
        padding: 20px;
    }

    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .feed-url-container {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}