.yt-container {
    max-width: 900px;
    margin: 0 auto;
}

.yt-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input--lg {
    font-size: 18px;
    padding: 14px 20px;
}

.btn--lg {
    padding: 14px 28px;
    font-size: 16px;
    white-space: nowrap;
}

.error-msg {
    color: #d14343;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

/* Featured card (Max Res) takes full width */
.thumb-card.featured {
    grid-column: 1 / -1;
    border-color: var(--brand);
    background: linear-gradient(to bottom, #fff, #f8f9ff);
}

.thumb-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.thumb-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #eee;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge {
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-soft {
    background: #f0f0f5;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.res-label {
    font-size: 12px;
    color: var(--muted);
    font-family: monospace;
}

@media (max-width: 768px) {
    .yt-input-box {
        flex-direction: column;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.mt-2 { margin-top: 10px; }
.hidden { display: none !important; }
