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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%);
    color: #e5e7eb;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-section {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.logo {
    display: inline-block;
    position: relative;
}

.badge-beta {
    position: absolute;
    top: -8px;
    right: -16px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transform: rotate(15deg);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.add-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Main Content */
.main-content {
    margin-bottom: 4rem;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section > p:first-child {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f3f4f6;
    margin-bottom: 2rem;
}

.info-box {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-box a {
    color: #60a5fa;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

.url-section {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.url-section h3 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.base-url {
    display: block;
    background: rgba(31, 41, 55, 0.8);
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Sources Section */
.sources-section h2 {
    font-size: 1.8rem;
    color: #f9fafb;
    margin-bottom: 2rem;
    font-weight: 600;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.source-card {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.source-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.source-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.source-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 1rem;
    object-fit: cover;
}

.source-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0;
}

.source-status {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-fr {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-nsfw {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.source-version {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.source-id {
    font-size: 0.8rem;
    color: #6b7280;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    color: #9ca3af;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #60a5fa;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .base-url {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .add-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Loading animation */
.loading {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.source-card {
    animation: fadeInUp 0.5s ease-out;
}

.source-card:nth-child(n) {
    animation-delay: calc(0.1s * var(--index, 0));
}