/* YouTube Importer Styles - matching your other tools */
.yt-importer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.yt-importer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.03) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(0, 0, 255, 0.03) 0%, transparent 30%);
    animation: yt-bg-shift 20s infinite alternate;
    z-index: 0;
}

@keyframes yt-bg-shift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, 2%) rotate(1deg); }
}

.yt-importer-container > * {
    position: relative;
    z-index: 1;
}

.yt-importer-container h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.yt-subtitle {
    text-align: center;
    color: #475569;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Tabs */
.yt-importer-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.yt-tab-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s;
}

.yt-tab-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
    box-shadow: 0 10px 20px -8px rgba(255, 0, 0, 0.3);
}

.yt-tab-content {
    display: none;
}

.yt-tab-content.active {
    display: block;
}

/* Input groups */
.yt-input-group {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 80px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.yt-input-group input,
.yt-input-group select {
    padding: 18px 24px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: #1e293b;
}

.yt-input-group input {
    flex: 2;
    min-width: 250px;
}

.yt-input-group select {
    flex: 0 0 auto;
    background: white;
    cursor: pointer;
}

.yt-import-btn {
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 0 36px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 10px 20px -8px rgba(255, 0, 0, 0.4);
}

.yt-import-btn:hover {
    background: linear-gradient(145deg, #e63939, #b30000);
    transform: scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(255, 0, 0, 0.5);
}

/* Loading */
.yt-loading {
    text-align: center;
    margin: 40px 0;
}

.yt-spinner {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 5px solid rgba(0, 0, 0, 0.08);
    border-left-color: #ff0000;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.yt-error {
    background: rgba(254, 202, 202, 0.9);
    backdrop-filter: blur(4px);
    color: #991b1b;
    padding: 18px 28px;
    border-radius: 60px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    font-weight: 500;
    border-left: 6px solid #b91c1c;
}

/* Results */
.yt-import-results {
    margin-top: 40px;
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
}

.yt-import-results h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.yt-results-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.yt-stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    min-width: 120px;
}

.yt-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff0000;
    display: block;
}

.yt-stat-label {
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
}

.yt-result-item {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-result-item:last-child {
    border-bottom: none;
}

.yt-result-icon {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

.yt-result-title {
    flex: 1;
    font-weight: 500;
}

/* Video Grid */
.yt-video-grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.yt-video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.yt-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
}

.yt-video-card a {
    text-decoration: none;
    color: inherit;
}

.yt-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.yt-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.yt-video-card:hover .yt-video-thumbnail img {
    transform: scale(1.05);
}

.yt-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.yt-video-card h3 {
    font-size: 1rem;
    margin: 15px 15px 10px;
    line-height: 1.4;
    font-weight: 600;
    color: #1e293b;
}

.yt-video-meta {
    padding: 0 15px 15px;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .yt-importer-container {
        padding: 2rem 1rem;
    }
    
    .yt-importer-container h2 {
        font-size: 2.2rem;
    }
    
    .yt-importer-tabs {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .yt-input-group {
        flex-direction: column;
        border-radius: 30px;
        background: white;
    }
    
    .yt-input-group input,
    .yt-input-group select {
        width: 100%;
        background: #f8fafc;
    }
    
    .yt-import-btn {
        padding: 15px;
    }
    
    .yt-results-stats {
        flex-direction: column;
        gap: 10px;
    }
}