/* YouTube Video Downloader Styles */
.ytvideo-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.ytvideo-wrapper { max-width: 850px; margin: 0 auto; }

.ytvideo-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.02em;
}
.ytvideo-heart { font-size: 2.8rem; animation: pulse 2s infinite; }

.ytvideo-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.ytvideo-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.input-area .input-group {
    display: flex;
    gap: 12px;
}
.yt-input {
    flex: 1;
    padding: 1.1rem 1.3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.05rem;
    background: var(--bg);
    color: var(--text);
}
.fetch-button {
    padding: 0 2.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.video-preview {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.video-thumbnail {
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.video-info { flex: 1; min-width: 280px; }

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.format-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}
.format-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.format-card .format-type {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.format-card .format-details {
    font-size: 0.95rem;
    color: var(--text-light);
}

.ytvideo-actions { margin-top: 2.5rem; }

.download-card { /* Same beautiful card as your other tools */ 
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

/* Mobile */
@media (max-width: 767px) {
    .ytvideo-title { font-size: 2.4rem; }
    .input-area .input-group { flex-direction: column; }
    .fetch-button { width: 100%; }
    .video-preview { flex-direction: column; }
    .video-thumbnail { width: 100%; }
}